/* ==========================================================================
   Leitrim Cottages - public theme
   Highland green + gold hospitality design system (Bootstrap 5 base).
   ========================================================================== */

:root {
    --green:        #1b6b3a;
    --green-dark:   #15512c;
    --green-darker: #0f3d21;
    --gold:         #f2b400;
    --gold-dark:    #c8950a;
    --gold-soft:    #fbe9bf;
    --cream:        #fbf8f1;
    --cream-2:      #f3eee1;
    --ink:          #1f2a24;
    --muted:        #5d6b62;
    --line:         #e7e2d5;
    --white:        #ffffff;

    --radius:    14px;
    --radius-sm: 9px;
    --radius-pill: 999px;
    --shadow:    0 18px 50px rgba(21, 81, 44, .12);
    --shadow-sm: 0 8px 24px rgba(21, 81, 44, .10);
    --maxw: 1200px;

    --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* Base ------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
    font-family: var(--font-head);
    font-weight: 500;
    line-height: 1.12;
    color: var(--green-dark);
    letter-spacing: -.01em;
}

a { color: var(--green); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; height: auto; }

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.container-tight { max-width: var(--maxw); }

.bg-cream  { background: var(--cream); }
.bg-cream-2{ background: var(--cream-2); }
.bg-green  { background: var(--green); color: #eaf3ec; }
.bg-white  { background: var(--white); }

/* Eyebrow + section heads ----------------------------------------------- */
.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .74rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: .65rem;
    display: inline-block;
}
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0 0 1rem; }
.section-lead { color: var(--muted); font-size: 1.06rem; max-width: 640px; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }
.divider-leaf { width: 64px; height: 3px; background: var(--gold); border-radius: 3px; margin: 1rem 0 0; }
.text-center .divider-leaf { margin-left: auto; margin-right: auto; }

/* Buttons ---------------------------------------------------------------- */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: .72rem 1.5rem;
    letter-spacing: .01em;
    border: 2px solid transparent;
    transition: all .18s ease;
}
.btn-gold { background: var(--gold); color: var(--green-darker); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-green { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline-green:hover { background: var(--green); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--green-dark); }
.btn-lg { padding: .9rem 1.9rem; font-size: 1.02rem; }

/* Navbar ----------------------------------------------------------------- */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
    padding: .85rem 0;
    transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-nav.solid { background: rgba(255,255,255,.97); box-shadow: 0 4px 20px rgba(21,81,44,.08); padding: .55rem 0; }
.site-nav .nav-inner { display: flex; align-items: center; justify-content: space-between; }
.site-nav .brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-nav .brand .brand-logo {
    height: 120px; width: auto; transition: height .25s ease;
    filter: drop-shadow(0 0 3px rgba(255,255,255,.7)) drop-shadow(0 2px 5px rgba(0,0,0,.4));
}
.site-nav.solid .brand .brand-logo { height: 88px; filter: none; }
@media (max-width: 991px) {
    .site-nav .brand .brand-logo { height: 84px; }
    .site-nav.solid .brand .brand-logo { height: 64px; }
}

.nav-links { display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.nav-links a {
    color: #fff; font-weight: 500; font-size: .96rem; position: relative; padding: .2rem 0;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--gold); transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.site-nav.solid .nav-links a { color: var(--ink); }
.site-nav.solid .nav-links a:hover, .site-nav.solid .nav-links a.active { color: var(--green); }

.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }
.site-nav.solid .nav-toggle { color: var(--green-dark); }

@media (max-width: 991px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
        background: var(--green-dark); flex-direction: column; align-items: flex-start;
        padding: 5rem 2rem 2rem; gap: 1.2rem; transform: translateX(100%); transition: transform .28s ease; z-index: 1040;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { color: #fff !important; font-size: 1.1rem; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(15,61,33,.5); opacity: 0; visibility: hidden; transition: .25s; z-index: 1035; }
    .nav-backdrop.show { opacity: 1; visibility: visible; }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.4s ease, transform 7s ease;
    transform: scale(1.06);
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(15,61,33,.55) 0%, rgba(15,61,33,.35) 45%, rgba(15,61,33,.78) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 7rem 0 3rem; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.6rem); margin: 0 0 1rem; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 620px; color: #f1f5ef; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-scroll { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.8); font-size: 1.5rem; animation: bob 2s infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0);} 50% { transform: translate(-50%, 8px);} }

/* Booking widget --------------------------------------------------------- */
.booking-widget {
    background: rgba(255,255,255,.97); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 1.1rem; display: grid; gap: .75rem;
    grid-template-columns: 1.4fr 1fr 1fr .9fr auto; align-items: end;
}
.booking-widget .field label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: .25rem; display: block; }
.booking-widget .form-control, .booking-widget .form-select {
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .75rem; font-size: .95rem; color: var(--ink); background: #fff;
}
.booking-widget .form-control:focus, .booking-widget .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,107,58,.12); outline: none; }
.booking-widget .btn { width: 100%; white-space: nowrap; }
@media (max-width: 991px) { .booking-widget { grid-template-columns: 1fr 1fr; } .booking-widget .btn-wrap { grid-column: 1 / -1; } }
@media (max-width: 520px) { .booking-widget { grid-template-columns: 1fr; } }

/* Amenity strip ---------------------------------------------------------- */
.amenity-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.amenity-item { text-align: center; padding: 1.2rem .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .18s ease, box-shadow .18s ease; }
.amenity-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.amenity-item i { font-size: 1.7rem; color: var(--green); }
.amenity-item .lucide { width: 30px; height: 30px; stroke: var(--green); }
.amenity-item span { display: block; margin-top: .6rem; font-size: .9rem; font-weight: 500; color: var(--ink); }
@media (max-width: 991px) { .amenity-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .amenity-strip { grid-template-columns: repeat(2, 1fr); } }

/* Cottage cards ---------------------------------------------------------- */
.cottage-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.cottage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cottage-card .media { aspect-ratio: 4/3; background: var(--cream-2) center/cover no-repeat; position: relative; }
.cottage-card .media .badge-rate { position: absolute; bottom: .7rem; left: .7rem; background: var(--gold); color: var(--green-darker); font-weight: 600; font-size: .82rem; padding: .35rem .75rem; border-radius: var(--radius-pill); }
.cottage-card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.cottage-card h3 { font-size: 1.35rem; margin: 0 0 .3rem; }
.cottage-card .meta { color: var(--muted); font-size: .88rem; margin-bottom: .6rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.cottage-card .meta span { display: inline-flex; align-items: center; gap: .35rem; }
.cottage-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.cottage-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }

/* Feature split ---------------------------------------------------------- */
.feature-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--cream-2) center/cover no-repeat; }
.feature-img.tall { aspect-ratio: 3/4; }
.stat-row { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.stat-row .stat .n { font-family: var(--font-head); font-size: 2rem; color: var(--green); line-height: 1; }
.stat-row .stat .l { font-size: .85rem; color: var(--muted); }

/* Gallery ---------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.gallery-grid.teaser { grid-template-columns: repeat(3, 1fr); }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 1/1; cursor: pointer; background: var(--cream-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: '\f00e'; }
.gallery-item .zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15,61,33,.0); color: #fff; opacity: 0; transition: .25s; font-size: 1.5rem; }
.gallery-item:hover .zoom { background: rgba(15,61,33,.35); opacity: 1; }
@media (max-width: 767px) { .gallery-grid, .gallery-grid.teaser { grid-template-columns: repeat(2, 1fr); } }

.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.gallery-filters button { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: var(--radius-pill); padding: .4rem 1.1rem; font-size: .88rem; font-weight: 500; cursor: pointer; transition: .15s; }
.gallery-filters button.active, .gallery-filters button:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* Lightbox --------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; background: rgba(12,32,20,.92); z-index: 2000; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-close { top: 1.2rem; right: 1.2rem; }
.lightbox .lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* Experiences ------------------------------------------------------------ */
.exp-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; }
.exp-card .media { aspect-ratio: 16/10; background: var(--cream-2) center/cover no-repeat; }
.exp-card .body { padding: 1.1rem 1.2rem 1.3rem; }
.exp-card h3 { font-size: 1.15rem; margin: 0 0 .3rem; }
.exp-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { background: #eef4e8; color: #3b6d11; border-radius: var(--radius-pill); padding: .4rem .9rem; font-size: .85rem; font-weight: 500; }

/* CTA band --------------------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--green-dark), var(--green)); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbeadf; max-width: 560px; margin: .5rem auto 1.5rem; }

/* Forms ------------------------------------------------------------------ */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .35rem; }
.form-control, .form-select {
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .85rem; font-size: .97rem;
}
.form-control:focus, .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,107,58,.12); }
.field-error { color: #b3261e; font-size: .82rem; margin-top: .25rem; }
.is-invalid { border-color: #b3261e !important; }

/* Info / contact tiles --------------------------------------------------- */
.contact-tile { display: flex; gap: .9rem; align-items: flex-start; }
.contact-tile .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: #eef4e8; color: var(--green); display: flex; align-items: center; justify-content: center; }
.contact-tile .ic i, .contact-tile .ic .lucide { width: 22px; height: 22px; }
.contact-tile h4 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--ink); margin: 0 0 .15rem; }
.contact-tile p, .contact-tile a { color: var(--muted); margin: 0; font-size: .95rem; }

/* Page hero (inner pages) ------------------------------------------------ */
.page-hero { position: relative; color: #fff; padding: 9rem 0 3.5rem; background: var(--green-dark) center/cover no-repeat; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,61,33,.6), rgba(15,61,33,.8)); }
.page-hero .inner { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero .crumbs { color: rgba(255,255,255,.8); font-size: .9rem; }
.page-hero .crumbs a { color: #fff; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--green-darker); color: #c9dccd; padding: 3.5rem 0 1.5rem; }
.site-footer h5 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .02em; }
.site-footer a { color: #c9dccd; }
.site-footer a:hover { color: var(--gold); }
.site-footer .foot-logo { height: 64px; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.site-footer .foot-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.3rem; font-size: .85rem; color: #9fb6a4; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; }

/* WhatsApp float --------------------------------------------------------- */
.wa-float {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1050;
    display: flex; align-items: center; text-decoration: none;
    height: 60px; border-radius: 30px; background: #25d366;
    box-shadow: 0 12px 30px rgba(7,94,84,.35), 0 4px 10px rgba(0,0,0,.12);
    padding-right: 0; transition: padding-right .3s ease, box-shadow .2s ease, transform .2s ease;
}
.wa-float .wa-icon { flex: 0 0 60px; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.wa-float .wa-icon svg { width: 32px; height: 32px; fill: #fff; }
.wa-float .wa-label { color: #fff; font-weight: 600; font-size: .95rem; white-space: nowrap; max-width: 0; overflow: hidden; transition: max-width .3s ease, margin .3s ease; }
.wa-float:hover { padding-right: 22px; transform: translateY(-2px); box-shadow: 0 16px 38px rgba(7,94,84,.45), 0 4px 12px rgba(0,0,0,.16); }
.wa-float:hover .wa-label { max-width: 170px; margin-left: 2px; }
.wa-float::before {
    content: ''; position: absolute; left: 6px; top: 6px; width: 48px; height: 48px; border-radius: 50%;
    background: #25d366; z-index: -1; animation: waPulse 2.6s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
@media (max-width: 575px) { .wa-float .wa-label { display: none; } }

/* Flash / alerts --------------------------------------------------------- */
.alert-soft { border-radius: var(--radius-sm); border: 1px solid var(--line); padding: .9rem 1.1rem; }
.alert-success.alert-soft { background: #e9f6ee; border-color: #bfe4cc; color: #1c5f33; }
.alert-danger.alert-soft  { background: #fdecec; border-color: #f3c6c6; color: #9b2226; }

/* Reveal on scroll ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Utilities -------------------------------------------------------------- */
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.fw-head { font-family: var(--font-head); }
.lead-muted { color: var(--muted); font-size: 1.05rem; }
.rounded-img { border-radius: var(--radius); overflow: hidden; }
