/* Lettings template - Navy & sky blue, city search layout. Shared HTML structure; colours follow --primary/--accent. */
body.template-lettings-navy-sky {
    --design-paper: #f6f8fb;
    --design-surface: #ffffff;
    --design-ink: #1b2a3d;
    --design-muted: #55657a;
    --design-line: #d8e0ea;
    --design-radius: 4px;
    --design-heading: Georgia, "Times New Roman", serif;
    --navy-deep: color-mix(in srgb, var(--primary) 82%, #000);
    background: var(--design-paper);
    color: var(--design-ink);
    font-family: Arial, "Helvetica Neue", sans-serif;
}

body.template-lettings-navy-sky h1,
body.template-lettings-navy-sky h2,
body.template-lettings-navy-sky h3 {
    font-family: var(--design-heading);
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--primary);
}

/* Keep the header above page content so its dropdowns can extend below it. */
body.template-lettings-navy-sky .site-header {
    position: relative;
    z-index: 2;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .65rem 1rem;
    padding-block: 14px;
    color: #fff;
}
body.template-lettings-navy-sky .site-header:not(.site-header-band > .site-header)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--primary);
    box-shadow: 0 0 0 100vmax var(--primary);
    clip-path: inset(0 -100vmax);
}
body.template-lettings-navy-sky .site-header > .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    max-width: 220px;
}
body.template-lettings-navy-sky .site-header > .site-language-picker {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin: 0;
}
body.template-lettings-navy-sky .site-header > #navigation {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
    gap: .2rem clamp(.4rem, 1vw, 1rem);
}
body.template-lettings-navy-sky .site-header .site-nav-dropdown summary { color: inherit; }
body.template-lettings-navy-sky .site-header .site-nav-dropdown summary:hover,
body.template-lettings-navy-sky .site-header .site-nav-dropdown[open] summary {
    background: rgb(255 255 255 / 14%);
}
body.template-lettings-navy-sky .site-header .site-language-picker summary {
    border-color: rgb(255 255 255 / 45%);
}
body.template-lettings-navy-sky .site-header .site-nav-submenu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .4rem .65rem;
    color: var(--design-ink);
    font-size: .875rem;
    letter-spacing: normal;
    text-decoration: none;
    text-transform: none;
}
body.template-lettings-navy-sky .site-header .site-nav-group .site-nav-submenu {
    inset-inline-start: 0;
    inset-inline-end: auto;
}
@media (max-width: 800px) {
    body.template-lettings-navy-sky .site-header:has(.site-language-picker) {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }
    body.template-lettings-navy-sky .site-header > .menu-toggle {
        grid-column: 2;
        grid-row: 1;
    }
    body.template-lettings-navy-sky .site-header > .brand:has(.site-brand-logo) .site-brand-logo {
        width: clamp(96px, 30vw, 140px);
        height: auto;
        max-width: 100%;
        max-height: 56px;
    }
    body.template-lettings-navy-sky .site-header > .brand { font-size: 1rem; }
}
body.template-lettings-navy-sky .site-header .brand { color: #fff; font-family: var(--design-heading); font-weight: 700; font-size: 1.35rem; text-decoration: none; }
body.template-lettings-navy-sky .site-header .brand span[aria-hidden] { color: var(--accent); }
body.template-lettings-navy-sky .site-header nav a {
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding-block: 6px;
    border-bottom: 2px solid transparent;
}
body.template-lettings-navy-sky .site-header nav a:hover,
body.template-lettings-navy-sky .site-header nav a[aria-current] { text-decoration: none; border-bottom-color: var(--accent); }
body.template-lettings-navy-sky .menu-toggle { color: #fff; background: transparent; border: 1px solid color-mix(in srgb, #fff 55%, transparent); }

body.template-lettings-navy-sky main > h1.wrap { margin-top: 48px; }

/* Photo hero with a dark navy overlay; the following search card overlaps its lower edge. */
body.template-lettings-navy-sky .hero-background { min-height: 360px; padding-bottom: 120px; }
body.template-lettings-navy-sky .hero-background:after { background: linear-gradient(180deg, color-mix(in srgb, var(--navy-deep) 55%, transparent), color-mix(in srgb, var(--navy-deep) 88%, transparent)); }
body.template-lettings-navy-sky .hero-background h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); max-width: 760px; }
body.template-lettings-navy-sky .hero-background .lead { color: #e9f1fb; max-width: 620px; }
body.template-lettings-navy-sky .hero .button,
body.template-lettings-navy-sky .button { background: var(--primary); color: #fff; border-radius: var(--design-radius); font-weight: 700; }
body.template-lettings-navy-sky .hero-background .actions .button:first-child { background: var(--accent); color: var(--navy-deep); }
body.template-lettings-navy-sky .hero-background .actions .button + .button { background: transparent; box-shadow: inset 0 0 0 2px #fff; }

body.template-lettings-navy-sky .hero-background + .property-search { margin-top: -110px; position: relative; z-index: 1; padding-top: 0; }
/* The search panel overlaps the bottom of the hero, so the hero keeps room for its text and buttons above the panel.
   (.component raises specificity above the shared hero padding in design-system.css.) */
body.template-lettings-navy-sky .component.hero-background:has(+ .property-search) { padding-bottom: 150px; }
body.template-lettings-navy-sky .property-search-panel {
    max-width: 860px;
    margin-inline: auto;
    background: var(--design-surface);
    border: 0;
    border-top: 4px solid var(--accent);
    box-shadow: 0 18px 40px rgba(16, 34, 60, .18);
    text-align: center;
}
/* The panel is centred, so its heading and introduction are centred boxes as well as centred text. */
body.template-lettings-navy-sky .property-search-panel > :is(h2, .property-search-introduction) { margin-inline: auto; }
body.template-lettings-navy-sky .property-search-form { text-align: left; }

/* Navy bands: sections set to the accent background read as deep-blue bands with white text. */
body.template-lettings-navy-sky .component.bg-accent { background: var(--primary); color: #fff; padding: var(--design-panel-space); }
body.template-lettings-navy-sky .bg-accent h2,
body.template-lettings-navy-sky .bg-accent h3,
body.template-lettings-navy-sky .bg-accent dt { color: #fff; }
body.template-lettings-navy-sky .bg-accent a:not(.button) { color: #fff; }
body.template-lettings-navy-sky .bg-accent .button { background: var(--accent); color: var(--navy-deep); }
body.template-lettings-navy-sky .component.bg-muted { background: color-mix(in srgb, var(--accent) 18%, #fff); padding: var(--design-panel-space); }
body.template-lettings-navy-sky .callout.bg-accent { background: var(--primary); color: #fff; }

body.template-lettings-navy-sky .image-text > img { border-radius: var(--design-radius); box-shadow: 0 14px 34px rgba(16, 34, 60, .14); }

/* Cards: crisp white panels with a sky-blue top rule. */
body.template-lettings-navy-sky .cards .card-item,
body.template-lettings-navy-sky .team-member { background: var(--design-surface); border: 1px solid var(--design-line); border-top: 3px solid var(--accent); border-radius: var(--design-radius); padding: var(--design-card-space); }
body.template-lettings-navy-sky .card-plain .card-item { border: 0; background: transparent; padding: 0; }
body.template-lettings-navy-sky .card-feature-icon { color: var(--primary); }
body.template-lettings-navy-sky .card-image { border-radius: 2px; }

/* Property listings and pages. */
body.template-lettings-navy-sky .property-card article { border-radius: var(--design-radius); border-color: var(--design-line); box-shadow: 0 6px 18px rgba(16, 34, 60, .06); }
body.template-lettings-navy-sky .property-status { background: var(--accent); color: var(--navy-deep); }
body.template-lettings-navy-sky .property-price { font-family: var(--design-heading); }
body.template-lettings-navy-sky .property-enquire { background: var(--primary); color: #fff; border-radius: var(--design-radius); }
body.template-lettings-navy-sky .property-enquire h2,
body.template-lettings-navy-sky .property-enquire a:not(.button) { color: #fff; }
body.template-lettings-navy-sky .property-enquire .button { background: var(--accent); color: var(--navy-deep); }
body.template-lettings-navy-sky .calculator-results { background: color-mix(in srgb, var(--accent) 22%, #fff); border-top-color: var(--primary); }

/* Key facts used for opening hours and contact details. */
body.template-lettings-navy-sky .key-fact { border-top-color: var(--design-line); }
body.template-lettings-navy-sky .bg-accent .key-fact { border-top-color: color-mix(in srgb, #fff 25%, transparent); }

body.template-lettings-navy-sky details { border-bottom: 1px solid var(--design-line); padding-block: 10px; }
body.template-lettings-navy-sky summary { font-weight: 700; color: var(--primary); cursor: pointer; }

/* Footer as a navy band. */
body.template-lettings-navy-sky .footer {
    border-top: 0;
    color: #dfe8f3;
    background: var(--navy-deep);
    box-shadow: 0 0 0 100vmax var(--navy-deep);
    clip-path: inset(0 -100vmax);
    margin-top: 72px;
}
body.template-lettings-navy-sky .footer strong { color: #fff; font-family: var(--design-heading); }
body.template-lettings-navy-sky .footer a { color: #fff; }

@media (max-width: 800px) {
    body.template-lettings-navy-sky .site-header > #navigation { grid-column: 1 / -1; grid-row: 2; }
    body.template-lettings-navy-sky .site-header nav a { font-size: .9rem; }
    body.template-lettings-navy-sky .hero-background { min-height: 300px; padding-bottom: 100px; }
    body.template-lettings-navy-sky .hero-background + .property-search { margin-top: -80px; }
    body.template-lettings-navy-sky .component.hero-background:has(+ .property-search) { padding-bottom: 112px; }
    body.template-lettings-navy-sky .component.bg-accent,
    body.template-lettings-navy-sky .component.bg-muted { padding: 28px 20px; }
}

/* Heading scale: calmer than the shared default, suited to text-rich letting agent pages. */
body.template-lettings-navy-sky {
    --design-text-h1: clamp(2rem, 3.4vw, 2.75rem);
    --design-text-h2: clamp(1.5rem, 2.3vw, 2rem);
    --design-text-h3: 1.15rem;
}
@media (max-width: 800px) {
    body.template-lettings-navy-sky {
        --design-text-h1: clamp(1.75rem, 7vw, 2.25rem);
        --design-text-h2: clamp(1.35rem, 5.5vw, 1.6rem);
    }
    body.template-lettings-navy-sky .hero-background h1 { font-size: clamp(1.85rem, 7.5vw, 2.25rem); }
}

/* Lighter type: Georgia headings at regular weight (Georgia has no semi-bold), with natural letter spacing. */
body.template-lettings-navy-sky h1,
body.template-lettings-navy-sky h2,
body.template-lettings-navy-sky .hero-background h1 { font-weight: 400; letter-spacing: -.005em; }
body.template-lettings-navy-sky h3 { font-weight: 400; letter-spacing: 0; font-size: calc(var(--design-text-h3) * 1.08); }
body.template-lettings-navy-sky .property-price { font-weight: 700; }
body.template-lettings-navy-sky .site-header nav a { font-weight: 600; }

/* A hero at the very top of the page meets the header with no gap. */
body.template-lettings-navy-sky main > .hero:first-child { margin-top: 0; }

/* Accreditation strip (Logo Grid, strip layout): compact, and badges never enlarged beyond their own size. */
body.template-lettings-navy-sky .logo-section:has(.logo-layout-strip) { padding-block: 24px; }
body.template-lettings-navy-sky .logo-layout-strip img { height: 60px; object-fit: scale-down; }
body.template-lettings-navy-sky .logo-section:not(:has(h2)) .logo-list { margin-top: 0; }

/* Tighter vertical rhythm between sections. */
body.template-lettings-navy-sky { --design-section-space: 44px; --design-panel-space: 36px; }
@media (max-width: 800px) { body.template-lettings-navy-sky { --design-section-space: 32px; --design-panel-space: 24px; } }

/* This theme's page background is already a pale blue-grey, so the Light band is a little stronger to stay visible. */
body.template-lettings-navy-sky .section-band.band-light { --band-bg: color-mix(in srgb, var(--primary) 9%, #fff); }

/* Shared by CMS websites and the downloadable HTML template: full-width photo, aligned content. */
body.template-lettings-navy-sky .component.hero.hero-background{width:100%;max-width:none;margin:0;border-radius:0;min-height:0;padding:48px max(40px,calc((100% - 1200px)/2));box-sizing:border-box}
body.template-lettings-navy-sky .component.hero.hero-background:has(+ .property-search){padding-bottom:132px}
body.template-lettings-navy-sky .hero-background .hero-copy{max-width:650px;margin:0;position:relative;z-index:1}
body.template-lettings-navy-sky .hero-background::after{background:linear-gradient(90deg,rgba(8,25,48,.83),rgba(8,25,48,.15))}
@media(max-width:800px){body.template-lettings-navy-sky .component.hero.hero-background:has(+ .property-search){padding-bottom:104px}body.template-lettings-navy-sky .component.hero.hero-background{min-height:0;padding:32px 20px}}
/* Keep normal text margins inside imported bands, including bands with zero section padding. */
body.template-lettings-navy-sky .section-band[data-section-padding="none"]>[data-component="rich-text"]{display:flow-root}
body.template-lettings-navy-sky .section-band[data-section-padding="none"]>[data-component="rich-text"]>h2:first-child{margin-top:1.5rem}
body.template-lettings-navy-sky .section-band[data-section-padding="none"]>[data-component="rich-text"]>:last-child{margin-bottom:1.5rem}
body.template-lettings-navy-sky [data-component="rich-text"] li+li{margin-top:.5rem}
/* Inner-page introductions share the page gutter and use a quieter heading scale. */
body.template-lettings-navy-sky .component.hero-compact.bg-plain,
body.template-lettings-navy-sky .section-band>.component.hero-compact{padding-inline:0}
body.template-lettings-navy-sky .hero-compact h1{font-size:clamp(1.75rem,2.4vw,2.5rem);font-weight:400;max-width:32ch;line-height:1.15}
/* Left-aligned reading columns follow the page gutter rather than centring the narrower prose box. */
body.template-lettings-navy-sky main>[data-component="rich-text"].width-normal.align-left,
body.template-lettings-navy-sky .section-band:not([data-section-alignment="center"]):not([data-section-alignment="right"])>[data-component="rich-text"].width-normal.align-left{margin-inline-start:max(40px,calc((100% - 1200px)/2));margin-inline-end:auto}
@media(max-width:800px){
 body.template-lettings-navy-sky main>[data-component="rich-text"].width-normal.align-left,
 body.template-lettings-navy-sky .section-band:not([data-section-alignment="center"]):not([data-section-alignment="right"])>[data-component="rich-text"].width-normal.align-left{margin-inline-start:20px}
}
/* Keep footer headings readable against the navy footer, independent of section heading colours. */
body.template-lettings-navy-sky .footer :is(h2,h3,h4){color:#fff}
body.template-lettings-navy-sky .footer-back-to-top{display:inline-flex;align-self:flex-start;justify-self:end;margin-inline-start:auto;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid currentColor;border-radius:50%;color:inherit;text-decoration:none}body.template-lettings-navy-sky .footer-back-to-top:hover{background:#fff;color:var(--primary,#16335c)}body.template-lettings-navy-sky .footer-back-to-top:focus-visible{outline:3px solid var(--accent,#8fc1ec);outline-offset:4px}

@media(max-width:700px){body.template-lettings-navy-sky .footer-back-to-top{display:flex;margin-block-start:1rem}}

/* The runtime and portable demo share the same property-action affordances. */
body.template-lettings-navy-sky :is([data-save-property],[data-kestrel-save],[data-kestrel-clear],[data-kestrel-previous],[data-kestrel-next]){box-sizing:border-box;min-height:44px;padding:.6rem .9rem;border:1px solid currentColor;border-radius:.35rem;background:transparent;color:inherit;font:inherit;cursor:pointer}
body.template-lettings-navy-sky :is([data-save-property],[data-kestrel-save])[aria-pressed=true]{background:#e5f0e8;color:#173e2e}
body.template-lettings-navy-sky :is([data-save-property],[data-kestrel-save],[data-kestrel-clear],[data-kestrel-previous],[data-kestrel-next]):focus-visible{outline:3px solid var(--primary,#16335c);outline-offset:3px}
body.template-lettings-navy-sky :is([data-kestrel-previous],[data-kestrel-next]):disabled{opacity:.5;cursor:default}
body.template-lettings-navy-sky .property-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-block:1rem}
body.template-lettings-navy-sky .property-actions a,body.template-lettings-navy-sky .property-register-link a{display:inline-flex;align-items:center;min-height:44px}
body.template-lettings-navy-sky .lettings-footer-details h2{font:700 1rem/1.4 Arial,sans-serif;margin:0 0 10px}
body.template-lettings-navy-sky .property-details>.property-photos{padding:0;margin-block:1.5rem}
body.template-lettings-navy-sky .property-photo-grid .gallery-open{display:block;width:100%;height:100%}
body.template-lettings-navy-sky .property-photo-grid .gallery-item img{width:100%;height:100%;object-fit:cover}
@media(max-width:800px){body.template-lettings-navy-sky .property-photo-grid{grid-auto-rows:auto}body.template-lettings-navy-sky .property-photo-grid .gallery-item{aspect-ratio:4/3}body.template-lettings-navy-sky .property-photo-main{grid-column:1/-1;grid-row:auto}}

/* Compact rental search shared with HTML demo. */
.property-filters.kestrel-filters{display:block;padding:24px;border:1px solid #d7e0e7;border-radius:12px;background:#fff;box-shadow:0 5px 24px #16335c08;margin:1.5rem 0}
.kestrel-filters .property-filter-main{display:grid;grid-template-columns:minmax(240px,2fr) repeat(3,minmax(130px,1fr)) minmax(190px,1.2fr);gap:16px;align-items:start}
.kestrel-filters .property-filter-main .property-filter-location{grid-column:auto}.kestrel-filters label{font-size:.94rem}.kestrel-filters :is(input,select){min-width:0}
.kestrel-filters .property-filter-more{border:0;border-top:1px solid #d7e0e7;border-radius:0;padding:0;margin:20px 0 0;background:transparent;box-shadow:none}
.kestrel-filters .property-filter-more summary{min-height:44px;padding:12px 0;font-weight:600;cursor:pointer}.kestrel-filters [data-kestrel-filter-count]:not([hidden]){display:inline-block;margin-left:.5rem;padding:.1rem .5rem;border-radius:1rem;background:#e8f1fa;font-size:.8rem;color:#16335c}
.kestrel-filters .property-filter-extra-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:12px;align-items:start}
.kestrel-filters .property-filter-help{font-size:.85rem;line-height:1.5;margin:.8rem 0;color:#42566d}
.kestrel-filters .property-filter-toggles{display:flex;flex-wrap:wrap;gap:8px 24px}.kestrel-filters .property-filter-check{display:flex;gap:.65rem;align-items:center;min-height:44px;font-weight:400;margin:0}
.kestrel-filters .property-filter-check input{width:20px;height:20px;min-height:0;flex:none;margin:0}
.kestrel-filters .property-filter-actions{display:flex;flex-wrap:wrap;gap:12px;padding-top:16px}.property-filters.kestrel-filters .property-filter-actions .property-filter-reset{background:transparent;color:var(--primary);border:1px solid var(--primary)}
.property-results-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin:24px 0}.property-results-toolbar .property-results-summary{margin:0}.property-sort{display:flex;align-items:center;gap:12px}.property-sort label{font-size:.9rem;font-weight:600}.property-sort select{min-height:44px;max-width:100%;padding:.55rem 2rem .55rem .7rem;border:1px solid #bacadb;border-radius:4px;background:#fff;color:#16335c;font:inherit}
.kestrel-filters~.property-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.kestrel-pagination{justify-content:center;margin-top:2rem!important}
@media(max-width:1100px){.kestrel-filters .property-filter-main{grid-template-columns:repeat(3,minmax(0,1fr))}.kestrel-filters .property-filter-main .property-filter-location{grid-column:span 2}.kestrel-filters .property-filter-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kestrel-filters~.property-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.property-filters.kestrel-filters{padding:18px}.kestrel-filters .property-filter-main{grid-template-columns:repeat(2,minmax(0,1fr))}.property-results-toolbar .property-sort{width:100%;justify-content:space-between}.kestrel-filters~.property-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.property-filters.kestrel-filters{padding:16px}.kestrel-filters .property-filter-main,.kestrel-filters .property-filter-extra-grid{grid-template-columns:minmax(0,1fr)}.kestrel-filters .property-filter-main .property-filter-location{grid-column:auto}.kestrel-filters .property-filter-actions button{width:100%}.kestrel-filters .property-filter-toggles{display:block}.property-sort select{min-width:0;width:auto}}

