/* ============================================================
   CORNERHOUSE TEMPLATE — style-cornerhouse.css
   Prefix: ch-  |  Brand: Corner House Realty  |  Sage: #859A9B
   ============================================================ */

/* Angella White — Corner House Realty's script font */
@font-face {
    font-family: 'AngellaWhite';
    src: url('https://assets.agentfire3.com/fonts/cornerhouserealty.com/Angella%20White.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

/* ---- Variables ---- */
:root {
    --primary-color:  #859A9B;
    --ch-sage:        #859A9B;
    --ch-sage-dark:   #6b7e7f;
    --ch-sage-light:  #d4e0e0;
    --ch-black:       #1a1a1a;
    --ch-dark:        #2b2b2b;
    --ch-mid:         #5a5a5a;
    --ch-text:        #3e3e3e;
    --ch-border:      #e0e0e0;
    --ch-bg-light:    #f7f6f4;
    --ch-bg-white:    #ffffff;
    --font-heading:   'Cormorant Garamond', Georgia, serif;
    --font-body:      'Outfit', sans-serif;
    --font-script:    'AngellaWhite', cursive;
    --nav-height:     68px;
    --section-pad:    80px;
    --container-max:  1240px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ch-text);
    background: var(--ch-bg-white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---- Utility ---- */
.ch-container  { max-width: var(--container-max); margin: 0 auto; padding: 0 40px; }
.ch-mb-4       { margin-bottom: 16px; }
.ch-mb-8       { margin-bottom: 32px; }
.ch-text-muted { color: var(--ch-mid); font-size: 15px; }
.ch-text-center{ text-align: center; }

/* ---- Section wrapper ---- */
.ch-section         { padding: var(--section-pad) 0; }
.ch-section--white  { background: var(--ch-bg-white); }
.ch-section--light  { background: var(--ch-bg-light); }
.ch-section--contact{ background: var(--ch-bg-white); border-top: 1px solid var(--ch-border); }

/* ---- Section label (Angella White script + rule) ---- */
.ch-section-label {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 36px;
    font-family: var(--font-script) !important;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ch-dark);
    margin-bottom: 8px;
    line-height: 1.1;
}
.ch-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ch-border);
}

/* ---- Section title ---- */
.ch-section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 300;
    color: var(--ch-black);
    letter-spacing: 1px;
    margin-bottom: 32px;
    line-height: 1.15;
}
.ch-section-title em {
    font-style: italic;
    font-weight: 300;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.ch-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
    background: transparent;
}
.ch-header.scrolled {
    background: var(--ch-bg-white);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.ch-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    padding: 0 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.ch-brand-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}
.ch-header.scrolled .ch-brand-logo {
    filter: none;
}

.ch-nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.ch-nav-links a {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    transition: color 0.2s;
}
.ch-nav-links a:hover { color: #fff; }
.ch-header.scrolled .ch-nav-links a { color: var(--ch-dark); }
.ch-header.scrolled .ch-nav-links a:hover { color: var(--ch-sage); }

.ch-nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.ch-nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: background 0.3s;
}
.ch-header.scrolled .ch-nav-hamburger span { background: var(--ch-dark); }

/* Mobile nav open state */
.ch-nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--ch-bg-white);
    padding: 24px 40px 32px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.ch-nav-links.open a { color: var(--ch-dark); font-size: 13px; }

/* ============================================================
   HERO
   ============================================================ */
.ch-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.ch-hero-image {
    position: absolute;
    inset: 0;
}
.ch-hero-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.ch-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.2)  50%,
        rgba(0,0,0,0.45) 100%
    );
}

/* Left: rotated vertical address (Rela signature) */
.ch-hero-left {
    position: absolute;
    left: 5%;
    top: var(--nav-height);
    bottom: 80px;  /* clear bar + breathing room */
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* anchor to bottom so "7147" always visible */
    overflow: hidden;
    gap: 12px;
}

.ch-hero-vert-block {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.ch-hero-street-v {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.ch-hero-city-v {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.ch-hero-mls-v {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
}

/* Right: floating price + stats */
.ch-hero-right {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 3;
    text-align: right;
}

.ch-hero-price {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 400;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 16px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.ch-hero-stat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.ch-hero-stat-item {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
}

/* Bottom bar */
.ch-hero-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 4;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5%;
}

.ch-hero-status {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--ch-sage-light);
    text-transform: uppercase;
}

.ch-hero-photo-btn {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    background: none;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 8px 20px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.ch-hero-photo-btn:hover {
    border-color: #fff;
    color: #fff;
}

/* Thin address bar below hero */
.ch-address-bar {
    background: var(--ch-sage);
    text-align: center;
    padding: 10px 20px;
}
.ch-address-bar-text {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
}

/* ============================================================
   OVERVIEW / EDITORIAL
   ============================================================ */
.ch-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.ch-editorial-text {}

.ch-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ch-mid);
    margin-bottom: 24px;
}

.ch-read-more {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--ch-sage);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-top: 8px;
}

/* Dot-separated amenities */
.ch-amenities-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    margin-top: 20px;
}
.ch-amenity-item {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--ch-mid);
}
.ch-amenity-item:not(:last-child)::after {
    content: ' \2022 ';
    margin: 0 8px;
    color: var(--ch-sage);
}

/* Specs grid */
.ch-specs-block {}
.ch-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--ch-border);
    border: 1px solid var(--ch-border);
    margin-top: 16px;
}
.ch-spec-item {
    background: var(--ch-bg-white);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ch-spec-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ch-sage);
}
.ch-spec-val {
    font-size: 15px;
    font-weight: 400;
    color: var(--ch-dark);
    font-family: var(--font-heading);
}

/* ============================================================
   GALLERY
   ============================================================ */
.ch-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0;
}

.ch-gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--ch-border);
    cursor: pointer;
}
.ch-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ch-gallery-item:hover img { transform: scale(1.04); }

.ch-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}
.ch-gallery-item:hover .ch-gallery-overlay { opacity: 1; }
.ch-gallery-overlay .material-symbols-outlined {
    font-size: 32px;
    color: #fff;
}

.ch-gallery-viewall {
    text-align: center;
    padding: 40px 0 0;
}

.ch-btn-outline {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ch-dark);
    background: none;
    border: 1px solid var(--ch-dark);
    padding: 14px 40px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.ch-btn-outline:hover {
    background: var(--ch-dark);
    color: #fff;
}

/* ============================================================
   EMBEDS (Matterport / Video)
   ============================================================ */
.ch-embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.ch-embed-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ============================================================
   FLOOR PLAN
   ============================================================ */
.ch-fp-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ch-fp-tab {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 24px;
    border: 1px solid var(--ch-border);
    background: transparent;
    color: var(--ch-mid);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.ch-fp-tab.active,
.ch-fp-tab:hover {
    border-color: var(--ch-sage);
    color: var(--ch-sage);
}
.ch-fp-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 2px;
    background: var(--ch-sage);
}

.ch-fp-panel { display: none; }
.ch-fp-panel.active { display: block; }

.ch-fp-viewer {
    position: relative;
}

.ch-fp-canvas {
    position: relative;
    display: inline-block;
    width: 100%;
}
.ch-fp-image {
    width: 100%;
    height: auto;
    display: block;
}

.ch-fp-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
}
.ch-fp-dot {
    display: block;
    width: 14px;
    height: 14px;
    background: var(--ch-sage);
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.ch-fp-pulse {
    display: block;
    width: 28px;
    height: 28px;
    background: rgba(133,154,155,0.35);
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: ch-pulse 2s infinite;
}
@keyframes ch-pulse {
    0%   { transform: translate(-50%,-50%) scale(0.8); opacity: 0.8; }
    70%  { transform: translate(-50%,-50%) scale(1.4); opacity: 0; }
    100% { transform: translate(-50%,-50%) scale(0.8); opacity: 0; }
}

.ch-fp-preview {
    position: relative;
    margin-top: 16px;
    background: var(--ch-bg-light);
    border: 1px solid var(--ch-border);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.ch-fp-preview-img {
    max-width: 360px;
    height: auto;
    object-fit: cover;
}
.ch-fp-preview-label {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--ch-mid);
    text-transform: uppercase;
}
.ch-fp-preview-close {
    position: absolute;
    top: 12px; right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--ch-mid);
    line-height: 1;
}

/* ============================================================
   MAP
   ============================================================ */
.ch-map-container {
    position: relative;
    width: 100%;
    height: 420px;
    background: var(--ch-border);
    overflow: hidden;
}

/* Floating address card overlay */
.ch-map-card {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    background: #fff;
    padding: 32px 28px;
    text-align: center;
    min-width: 240px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 2;
}
.ch-map-card-icon {
    width: 48px;
    height: 48px;
    background: var(--ch-sage);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.ch-map-card-address {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    color: var(--ch-black);
    margin-bottom: 6px;
}
.ch-map-card-city {
    font-size: 12px;
    color: var(--ch-mid);
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.ch-map-card-btn {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--ch-sage);
    padding: 12px 20px;
    transition: background 0.2s;
}
.ch-map-card-btn:hover { background: var(--ch-sage-dark); }

/* ============================================================
   CONTACT
   ============================================================ */
.ch-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.ch-agent-card {}

.ch-agent-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--ch-sage-light);
}
.ch-agent-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.ch-agent-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    color: var(--ch-black);
    margin-bottom: 4px;
    margin-top: 8px;
}
.ch-agent-brokerage {
    font-size: 13px;
    color: var(--ch-mid);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.ch-agent-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.ch-agent-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ch-mid);
    transition: color 0.2s;
}
.ch-agent-contact-link:hover { color: var(--ch-sage); }
.ch-agent-contact-link .material-symbols-outlined {
    font-size: 18px;
    color: var(--ch-sage);
}

/* Agent website + social icons */
.ch-agent-website {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    word-break: break-all;
}
.ch-agent-website a {
    color: var(--ch-sage);
    text-decoration: none;
    transition: opacity 0.2s;
}
.ch-agent-website a:hover { opacity: 0.75; }
.ch-agent-socials {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.ch-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ch-light);
    color: var(--ch-sage);
    transition: background 0.2s, color 0.2s;
}
.ch-social-link:hover {
    background: var(--ch-sage);
    color: #fff;
}
.ch-social-link svg { display: block; }

/* Unbranded nav address */
.ch-nav-address-text {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: inherit;
}

/* ============================================================
   FLOATING SIDE CARD
   ============================================================ */
.ch-float-card {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    width: 220px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    z-index: 90;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.ch-float-card.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}
.ch-float-img {
    width: 64px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin: 0 auto 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.ch-float-body { margin-bottom: 14px; }
.ch-float-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ch-sage);
    margin: 0 0 4px;
}
.ch-float-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--ch-black);
    margin: 0 0 2px;
    line-height: 1.2;
}
.ch-float-brokerage {
    font-size: 11px;
    color: var(--ch-mid);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}
.ch-float-btn {
    display: block;
    width: 100%;
    padding: 11px;
    margin-bottom: 10px;
    background: var(--ch-sage);
    color: #fff;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.18em;
    transition: background 0.2s;
}
.ch-float-btn:hover { background: var(--ch-sage-dark); }
.ch-float-phone {
    font-size: 13px;
    font-weight: 600;
    color: var(--ch-dark);
    text-decoration: none;
    display: block;
}
.ch-float-phone:hover { color: var(--ch-sage); }
@media (max-width: 1200px) { .ch-float-card { display: none; } }

/* ============================================================
   EXIT-INTENT MODAL
   ============================================================ */
.ch-exit-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.ch-exit-modal.is-open {
    display: flex;
    animation: chExitFade 0.3s ease;
}
@keyframes chExitFade { from { opacity: 0; } to { opacity: 1; } }
.ch-exit-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ch-exit-card {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 480px;
    padding: 56px 40px 40px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    animation: chExitPop 0.4s cubic-bezier(0.2,0.9,0.3,1.2);
}
@keyframes chExitPop {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
.ch-exit-close {
    position: absolute;
    top: 14px; right: 18px;
    background: transparent;
    border: 0;
    font-size: 32px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.ch-exit-close:hover { background: #f4f4f4; color: #000; }
.ch-exit-logo {
    max-width: 140px; max-height: 60px;
    width: auto; height: auto;
    object-fit: contain;
    margin: 0 auto 24px;
    display: block;
}
.ch-exit-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ch-sage);
    margin: 0 0 12px;
}
.ch-exit-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    color: var(--ch-black);
    margin: 0 0 14px;
    line-height: 1.2;
}
.ch-exit-sub {
    font-size: 15px;
    color: var(--ch-mid);
    line-height: 1.5;
    margin: 0 0 28px;
}
.ch-exit-thanks { padding: 20px 0; }
.ch-exit-thanks h4 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
}
.ch-exit-form { display: flex; flex-direction: column; gap: 12px; }
.ch-exit-recaptcha { display: flex; justify-content: center; }
.ch-exit-input {
    height: 48px;
    padding: 0 18px;
    border: 1px solid var(--ch-border);
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--ch-black);
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}
.ch-exit-input:focus { border-color: var(--ch-sage); }
.ch-exit-btn {
    padding: 16px;
    background: var(--ch-sage);
    color: #fff;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.2em;
    transition: background 0.2s;
}
.ch-exit-btn:hover { background: var(--ch-sage-dark); }

/* Contact form */
.ch-form-card {}
.ch-form-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    color: var(--ch-black);
    margin-bottom: 24px;
    margin-top: 8px;
}

.ch-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.ch-form-group { margin-bottom: 16px; }
.ch-form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ch-mid);
    margin-bottom: 6px;
}
.ch-form-input,
.ch-form-textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ch-dark);
    background: var(--ch-bg-light);
    border: 1px solid var(--ch-border);
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    border-radius: 0;
}
.ch-form-input:focus,
.ch-form-textarea:focus { border-color: var(--ch-sage); }
.ch-form-textarea { min-height: 120px; resize: vertical; }

.ch-form-submit {
    display: block;
    width: 100%;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    background: var(--ch-sage);
    border: none;
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}
.ch-form-submit:hover { background: var(--ch-sage-dark); }

/* Password form */
.ch-password-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ch-footer {
    background: var(--ch-dark);
    padding: 40px 20px;
}
.ch-footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.ch-footer-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}
.ch-footer-powered {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
}
.ch-footer-powered a {
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
}
.ch-footer-legal {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.ch-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.96);
}
.ch-lb.active { display: flex; flex-direction: column; }

.ch-lb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    flex-shrink: 0;
}
.ch-lb-counter { font-size: 13px; color: rgba(255,255,255,0.6); letter-spacing: 1px; }
.ch-lb-actions { display: flex; gap: 8px; }
.ch-lb-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}
.ch-lb-btn:hover { color: #fff; }
.ch-lb-btn .material-symbols-outlined { font-size: 22px; display: block; }

.ch-lb-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.ch-lb-image-wrap {
    position: relative;
    max-width: 90vw;
    max-height: calc(100vh - 160px);
}
.ch-lb-image {
    max-width: 90vw;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    display: block;
    transition: opacity 0.2s;
}
.ch-lb-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}
.ch-lb-spinner {
    width: 32px; height: 32px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: var(--ch-sage);
    border-radius: 50%;
    animation: ch-spin 0.8s linear infinite;
}
@keyframes ch-spin { to { transform: rotate(360deg); } }

.ch-lb-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 16px 12px;
    z-index: 10;
    transition: background 0.2s;
}
.ch-lb-nav:hover { background: rgba(255,255,255,0.18); }
.ch-lb-prev { left: 16px; }
.ch-lb-next { right: 16px; }
.ch-lb-nav .material-symbols-outlined { font-size: 28px; display: block; }

.ch-lb-caption {
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    letter-spacing: 1px;
    padding: 8px 24px;
    flex-shrink: 0;
}

.ch-lb-thumbs {
    overflow-x: auto;
    padding: 12px 24px;
    flex-shrink: 0;
    scrollbar-width: none;
}
.ch-lb-thumbs::-webkit-scrollbar { display: none; }
.ch-lb-thumbs-track { display: flex; gap: 6px; width: max-content; }
.ch-lb-thumb {
    width: 56px; height: 40px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.ch-lb-thumb.active,
.ch-lb-thumb:hover { opacity: 1; outline: 2px solid var(--ch-sage); }
.ch-lb-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ch-lb-grid-view {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 4px;
    padding: 16px 24px;
    overflow-y: auto;
    flex: 1;
}
.ch-lb-grid-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
}
.ch-lb-grid-item img { width: 100%; height: 100%; object-fit: cover; }
.ch-lb-grid-num {
    position: absolute;
    bottom: 6px; right: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.ch-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.ch-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
