/* Aavi: the guide pages, Where to Stay (/where-to-stay-in-bekal/) and Places to Visit
   (/places-to-visit-in-kasaragod/), which share one design. A file of its own, because Tailwind reads the page
   templates and not .css files: nothing here adds a class to any site's Tailwind CSS. Fonts, colours, labels and
   buttons come from the site's own classes in the template; this file holds layout only. */

/* The four areas: flat tiles, a photo of the place with its name under it. */
.sg-areas{list-style:none;padding:0;margin:1.75rem 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem 1rem}
@media (min-width:768px){.sg-areas{grid-template-columns:repeat(4,minmax(0,1fr))}}
.sg-areas a{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}
.sg-areas a:hover .sg-area-name,.sg-areas a:focus-visible .sg-area-name{text-decoration:underline}
.sg-areas img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block}
.sg-area-name{display:block;font-size:1.125rem;line-height:1.25;padding-top:.65rem}
.sg-area-line{display:block;font-size:.9375rem;line-height:1.4;padding-top:.3rem;flex:1}
.sg-area-count{display:block;padding-top:.5rem;opacity:.8;line-height:1.5}

/* Who wrote this guide: our mark and our words in the same thin-lined box as a stay, with room under it. */
.sg-us{border:1px solid rgba(11,67,170,.3);padding:1.5rem 1.25rem;margin:2.5rem 0 3rem}
.sg-us-logo{width:170px;height:auto;display:block;margin:-.75rem auto 0}
.sg-us-wave{display:block;width:90px;height:auto;margin:.25rem auto 1rem}
.sg-us-text>*+*{margin-top:.75rem}
.sg-us-text p:not(:first-child){font-size:1rem;line-height:1.6}
@media (min-width:768px){
.sg-us{display:grid;grid-template-columns:190px minmax(0,1fr);gap:2rem;align-items:start;padding:2rem}
.sg-us-logo{width:190px;margin:-1.25rem 0 0}
.sg-us-wave{margin:.25rem auto 0}
}

/* The index beside the text on wide screens. It is quiet: out of sight in the first screen, faint until the pointer
   or the keyboard reaches it, and it lists the stays of one area at a time. It has its own grid column, so the text and the photos cannot run
   under it, and it stays inside this block: it never covers the header or the footer. */
.sg-layout{display:block}
.sg-toc{display:none}
@media (min-width:1360px){
.sg-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,48rem) minmax(0,1fr)}
.sg-layout>.sg-main{grid-column:2;grid-row:1;min-width:0}
.sg-toc{display:block;opacity:.5;transition:opacity .25s;grid-column:1;grid-row:1;justify-self:end;align-self:start;position:sticky;top:6.5rem;width:15rem;margin:4.5rem 1.5rem 2rem 1rem;max-height:calc(100vh - 8rem);overflow:auto;font-size:.9375rem;line-height:1.35}
}
.sg-toc:hover,.sg-toc:focus-within{opacity:1}
.sg-toc.is-wait{opacity:0;visibility:hidden}
.sg-toc p{margin:0 0 .6rem .7rem}
.sg-subs{display:none}
.sg-subs.is-open{display:block}
.sg-toc a{display:block;padding:.3rem .7rem;border-left:1px solid rgba(11,67,170,.3);color:inherit;text-decoration:none}
.sg-toc a:hover{color:rgb(11,67,170)}
.sg-toc a[aria-current=true]{border-left:2px solid rgb(11,67,170);padding-left:calc(.7rem - 1px);color:rgb(11,67,170)}
.sg-toc a.sg-sub{padding-left:1.5rem;font-size:.875rem}
.sg-toc a.sg-sub[aria-current=true]{padding-left:calc(1.5rem - 1px)}

/* A stay: a flat box with a thin line, like the "At a glance" box. Ours has the full blue line and a white ground. */
.sg-card{border:1px solid rgba(11,67,170,.3);padding:1.25rem}
@media (min-width:768px){.sg-card{padding:2rem}}
.sg-card>*+*{margin-top:1.25rem}
.sg-card>h3{padding-top:0!important}
.sg-card>p:first-child+h3{margin-top:.4rem}
.sg-card-us{background:#fff}

/* Facts and reasons: the room pages' pattern, an icon and a line beside it. */
.sg-facts,.sg-usps{list-style:none;padding:0;margin:1.25rem 0 0;display:grid;grid-template-columns:1fr;gap:1rem 1.75rem;font-size:1rem;line-height:1.45}
@media (min-width:640px){.sg-facts,.sg-usps{grid-template-columns:1fr 1fr}}
.sg-usps li{display:flex;gap:.9rem;align-items:flex-start}
.sg-fact{position:relative;padding-left:calc(26px + .9rem);min-height:26px}
.sg-usps img{flex:none;width:26px;height:26px;margin-top:.1rem}
.sg-fact img{position:absolute;left:0;top:.1rem;width:26px;height:26px}
.sg-fact dt{line-height:1.5}
.sg-fact dd{margin:.1rem 0 0}
.sg-fact-none dd{opacity:.6}
.sg-btns{display:flex;flex-wrap:wrap;gap:.75rem}
