/* Harlock Hideaways — brand theme, pulled from Kelly's logo/marketing materials.
   Deep woodland green + gold kept strong and prominent throughout, not just as accents. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --hh-green-deep: #16281c;
    --hh-green: #1f3a2c;
    --hh-green-mid: #2c4d38;
    --hh-primary: #1f3a2c;
    --hh-primary-hover: #16281c;

    --hh-gold: #b8935a;
    --hh-gold-light: #d4b587;
    --hh-accent: #b8935a;

    --hh-cream: #faf7f0;
    --hh-cream-deep: #f3ecdc;
    --hh-bg: #faf7f0;
    --hh-surface: #ffffff;

    --hh-text: #21231f;
    --hh-text-muted: #5a5e54;
    --hh-text-on-green: #f5f1e6;

    --hh-border: #e2d8c0;
    --hh-error: #a53d3d;
    --hh-radius: 6px;

    --hh-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --hh-font-script: 'Cormorant Garamond', Georgia, serif;
    --hh-font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--hh-font-body);
    background: var(--hh-bg);
    color: var(--hh-text);
    line-height: 1.6;
}

a { color: var(--hh-green); }

h1, h2, h3 {
    font-family: var(--hh-font-display);
    color: var(--hh-green-deep);
    letter-spacing: 0.01em;
}

/* ---------- header ---------- */

.site-header {
    background: var(--hh-green-deep);
    border-bottom: 3px solid var(--hh-gold);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 1.75rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--hh-text-on-green);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--hh-gold-light);
    border-bottom-color: var(--hh-gold);
}

@media (max-width: 480px) {
    .main-nav a {
        font-size: 0.8rem;
    }
}

/* Keeps text readable to screen readers/search engines without showing it on
   screen — used where the logo graphic already spells out the same words, so
   showing them again as a visible heading would just be duplication. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- page-top logo (Home, Lodges, About, Owners) ---------- */

.page-logo-link {
    display: block;
    text-align: center;
    text-decoration: none;
    border: none;
    margin-top: 0.75rem;
}

.page-logo {
    display: inline-block;
    max-width: 100%;
    height: auto;
    width: 210px;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .page-logo {
        width: 150px;
    }
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    position: relative;
}

/* ---------- hero ---------- */

.hero {
    text-align: center;
    padding: 0.5rem 1rem 1.5rem;
    position: relative;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 0.4rem;
    color: var(--hh-green-deep);
}

@media (max-width: 700px) {
    /* A large serif display font has real ascender space above the letters
       even at zero margin/padding — shrinking the font size on mobile
       reduces that built-in gap as a side effect, on top of the logo/hero
       spacing already tightened above. This must come after the base
       .hero h1 rule above — equal specificity means source order decides,
       and a media query positioned earlier in the file does NOT win just
       for being inside a media query. */
    .hero h1 {
        font-size: 2rem;
    }
}

.hero .hero-tagline {
    font-family: var(--hh-font-script);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--hh-gold);
    margin: 0 0 0.75rem;
}

.hero p {
    color: var(--hh-text-muted);
    font-size: 1.05rem;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: var(--hh-gold);
    margin: 1.1rem auto;
}

/* ---------- search ---------- */

.search-section {
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-top: 4px solid var(--hh-green);
    border-radius: var(--hh-radius);
    padding: 1.5rem 1.75rem;
    margin-top: 1rem;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.1rem;
    align-items: end;
}

.search-form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--hh-green-deep);
    gap: 0.35rem;
}

.search-form input {
    padding: 0.65rem;
    border: 1px solid var(--hh-border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--hh-font-body);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--hh-text);
}

.search-form input:focus {
    outline: none;
    border-color: var(--hh-gold);
    box-shadow: 0 0 0 2px rgba(184, 147, 90, 0.25);
}

.btn.btn-outline {
    background: transparent;
    color: var(--hh-green);
    border: 1px solid var(--hh-green);
}

.btn.btn-outline:hover {
    background: var(--hh-cream-deep);
    color: var(--hh-green-deep);
    border-color: var(--hh-green);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--hh-text);
    cursor: pointer;
}

.filter-checkbox input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--hh-green);
}

.admin-amenities {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding: 0.9rem 0;
}

.admin-amenities-label {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--hh-green-deep);
    width: 100%;
}

/* Sits inline in the search form grid instead of stacked like the date/number labels. */
.filter-checkbox-inline {
    flex-direction: row;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    padding-bottom: 0.65rem;
}

.search-status {
    margin: 0.9rem 0 0;
    font-weight: 600;
    color: var(--hh-green);
    font-size: 0.95rem;
}

/* ---------- lodge grid / cards ---------- */

.lodge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin: 2rem 0;
}

.lodge-card {
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-top: 4px solid var(--hh-gold);
    border-radius: var(--hh-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(31, 58, 44, 0.06);
}

.lodge-card[hidden] {
    display: none;
}

.lodge-card-img-placeholder {
    background: linear-gradient(160deg, var(--hh-green-deep), var(--hh-green-mid) 70%, var(--hh-gold) 220%);
    color: var(--hh-text-on-green);
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hh-font-display);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-align: center;
    padding: 1rem;
}

.lodge-card-img-link {
    display: block;
}

.lodge-card-img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.lodge-detail-img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--hh-radius);
    border-top-width: 4px;
}

.lodge-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.lodge-split > * {
    /* Grid items default to min-width: auto, which lets an intrinsically wide
       image force its whole column wider than its fr share — this overrides
       that so the column proportions (and object-fit: cover) actually hold. */
    min-width: 0;
}

@media (min-width: 800px) {
    .lodge-split {
        grid-template-columns: 3fr 2fr;
        align-items: start;
    }
}

.lodge-gallery .lodge-detail-img {
    margin: 0;
    height: 560px;
    object-fit: contain;
    background: var(--hh-cream-deep);
}

@media (max-width: 799px) {
    .lodge-gallery .lodge-detail-img {
        height: 380px;
    }
}

.lodge-gallery-viewer {
    position: relative;
}

.lodge-gallery-info-bar {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}

.lodge-gallery-info-category {
    font-weight: 700;
    color: var(--hh-green-deep);
    white-space: nowrap;
}

.lodge-gallery-info-caption {
    flex: 1;
    min-width: 0;
    color: var(--hh-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lodge-gallery-info-counter {
    color: var(--hh-text-muted);
    white-space: nowrap;
}

.lodge-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(22, 40, 28, 0.65);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.lodge-gallery-arrow:hover {
    background: var(--hh-green-deep);
}

@media (max-width: 799px) {
    .lodge-gallery-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

.lodge-gallery-prev {
    left: 0.75rem;
}

.lodge-gallery-next {
    right: 0.75rem;
}

.lodge-gallery-thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
}

.lodge-gallery-thumb {
    flex: 0 0 auto;
    width: 96px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    opacity: 0.7;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.lodge-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lodge-gallery-thumb:hover {
    opacity: 1;
}

.lodge-gallery-thumb.active {
    opacity: 1;
    border-color: var(--hh-gold);
}

.lodge-card-body {
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lodge-card-body h2 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    color: var(--hh-green-deep);
}

.lodge-meta {
    color: var(--hh-text-muted);
    font-size: 0.9rem;
}

.lodge-location {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.15rem 0 0.5rem;
}

.lodge-location a {
    color: var(--hh-green);
    text-decoration: none;
}

.lodge-location a:hover,
.lodge-location a:focus-visible {
    text-decoration: underline;
}

.lodge-price {
    font-weight: 700;
    color: var(--hh-green);
    margin: 0.6rem 0 1.1rem;
    font-size: 1.05rem;
}

.btn {
    display: inline-block;
    background: var(--hh-green);
    color: var(--hh-text-on-green);
    padding: 0.75rem 1.5rem;
    border-radius: var(--hh-radius);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 1px solid var(--hh-green);
    cursor: pointer;
    margin-top: auto;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
    background: var(--hh-gold);
    border-color: var(--hh-gold);
    color: var(--hh-green-deep);
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--hh-gold);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.lodge-description {
    font-size: 1.02rem;
}

.lodge-description h2 {
    margin-top: 0;
}

.lodge-facts-summary {
    color: var(--hh-text-muted);
    font-weight: 500;
    margin: 0 0 1rem;
}

.lodge-info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.25rem 0;
}

.lodge-info-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--hh-green-mid);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.lodge-info-link:hover,
.lodge-info-link:focus-visible {
    color: var(--hh-green-deep);
}

.lodge-info-dialog {
    max-width: 480px;
    width: calc(100% - 2rem);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.lodge-info-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.lodge-info-dialog h3 {
    margin-top: 0;
}

.lodge-info-dialog .btn {
    margin-top: 1rem;
}

.lodge-info-dialog-wide {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.lodge-info-dialog-wide h4 {
    margin: 1.25rem 0 0.5rem;
    color: var(--hh-green-mid);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lodge-info-dialog-wide h4:first-of-type {
    margin-top: 0.5rem;
}

.lodge-map-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--hh-radius);
    overflow: hidden;
    border: 1px solid var(--hh-border);
}

.lodge-map-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.area-recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-recommendations-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--hh-border);
    line-height: 1.5;
}

.area-recommendations-list li:last-child {
    border-bottom: none;
}

.area-recommendations-list a {
    display: inline-block;
    margin-left: 0.4rem;
    white-space: nowrap;
}

.area-views-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.area-views-item {
    margin: 0;
}

.area-views-thumb-btn {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--hh-radius);
}

.area-views-thumb-btn:hover img,
.area-views-thumb-btn:hover video,
.area-views-thumb-btn:focus-visible img,
.area-views-thumb-btn:focus-visible video {
    opacity: 0.85;
}

.area-views-item img,
.area-views-item video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--hh-radius);
    display: block;
    transition: opacity 0.15s ease;
}

.area-views-thumb-btn-video::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.9rem;
    pointer-events: none;
}

.area-views-item figcaption {
    font-size: 0.8rem;
    color: var(--hh-text-muted);
    margin-top: 0.3rem;
}

.area-views-lightbox {
    max-width: 90vw;
    width: 900px;
    max-height: 90vh;
    border: none;
    border-radius: var(--hh-radius);
    padding: 1rem;
    background: var(--hh-green-deep);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.area-views-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.75);
}

.area-views-lightbox img,
.area-views-lightbox video {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    margin: 0 auto;
    border-radius: 4px;
}

.area-views-lightbox p {
    text-align: center;
    color: #fff;
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}

.area-views-lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.area-views-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
}

.area-views-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.area-views-lightbox-prev {
    left: 0.5rem;
}

.area-views-lightbox-next {
    right: 0.5rem;
}

.lodge-amenities-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--hh-gold);
}

.lodge-facts {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem 1.5rem;
}

.amenities-grid {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hh-border);
    /* Multi-column flow, not a grid — a grid's columns all share one height
       per row, so a 1-item category and a 12-item category end up forced
       into the same box size. Columns here just stack cards top-to-bottom
       and each card is only as tall as its own content needs. */
    column-width: 220px;
    column-gap: 1.25rem;
}

.amenities-group {
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.amenities-group h3 {
    font-size: 1rem;
    color: var(--hh-green);
    margin: 0 0 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--hh-border);
}

.amenities-group .lodge-facts {
    display: block;
    margin-top: 0;
}

.amenities-group .lodge-facts li {
    margin-bottom: 0.5rem;
}

.amenities-group .lodge-facts li:last-child {
    margin-bottom: 0;
}

.lodge-house-rules-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--hh-gold);
}

.lodge-reviews-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--hh-gold);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.review-card {
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-left: 4px solid var(--hh-gold);
    border-radius: var(--hh-radius);
    padding: 1.5rem;
    margin: 0;
}

.review-card p {
    font-family: var(--hh-font-script);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--hh-text);
    margin: 0 0 0.75rem;
}

.review-card footer {
    font-family: var(--hh-font-body);
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--hh-green-deep);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.review-source {
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--hh-text-muted);
}

.lodge-facts li {
    padding-left: 1.4rem;
    position: relative;
    font-weight: 500;
    color: var(--hh-text);
}

.lodge-facts li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--hh-gold);
    font-weight: 700;
}

/* ---------- booking section ---------- */

.booking-section {
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-top: 4px solid var(--hh-green);
    border-radius: var(--hh-radius);
    padding: 1.75rem;
    margin-top: 2rem;
}

.booking-section h2 {
    margin-top: 0;
}

.search-summary-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--hh-cream-deep);
    border-radius: var(--hh-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.search-summary-banner p {
    margin: 0;
    color: var(--hh-green-deep);
}

.booking-summary-facts {
    margin-bottom: 1.25rem;
}

/* ---------- availability calendar ---------- */

.date-picker-field {
    grid-column: 1 / -1;
    position: relative;
    margin: 0 0 0.25rem;
}

.selected-dates-trigger {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    font-weight: 600;
    color: var(--hh-green-deep);
    background: var(--hh-cream-deep);
    border: 1px solid var(--hh-border);
    padding: 0.6rem 1rem;
    border-radius: var(--hh-radius);
    cursor: pointer;
}

.selected-dates-trigger:hover {
    border-color: var(--hh-green);
}

.date-picker-icon {
    margin-right: 0.5rem;
}

/* Before any dates are picked, the field reads as a prompt (greyed, lighter
   weight) rather than looking like it already holds a value — once dates
   are selected it switches to the bold, dark "has a value" look above. */
.selected-dates-trigger-placeholder {
    color: var(--hh-text-muted);
    font-weight: 500;
    background: var(--hh-surface);
}

.availability-calendar {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.4rem);
    left: 0;
    width: min(420px, 100%);
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 1rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.calendar-nav-btn {
    background: var(--hh-green);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.15s ease;
}

.calendar-nav-btn:hover {
    background: var(--hh-green-deep);
}

.calendar-month-label {
    font-family: var(--hh-font-display);
    font-weight: 700;
    color: var(--hh-green-deep);
    font-size: 1.1rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--hh-text-muted);
    margin-bottom: 0.4rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    background: none;
    color: var(--hh-text);
}

.calendar-day-empty {
    cursor: default;
}

.calendar-day-available {
    background: var(--hh-cream-deep);
}

.calendar-day-available:hover {
    background: var(--hh-gold-light);
}

.calendar-day-booked {
    background: none;
    color: var(--hh-text-muted);
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day-in-range {
    background: var(--hh-gold-light);
    border-radius: 0;
}

.calendar-day-selected {
    background: var(--hh-green) !important;
    color: #fff;
}

.calendar-day-selected-start {
    border-radius: 6px 0 0 6px;
}

.calendar-day-selected-end {
    border-radius: 0 6px 6px 0;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.9rem;
    font-size: 0.85rem;
    color: var(--hh-text-muted);
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.legend-available {
    background: var(--hh-cream-deep);
}

.legend-booked {
    background: var(--hh-text-muted);
    opacity: 0.5;
}

.legend-selected {
    background: var(--hh-green);
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
    margin-top: 1rem;
}

.guest-details-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hh-border);
}

.guest-details-fields[hidden] {
    display: none;
}

.booking-form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--hh-green-deep);
    gap: 0.35rem;
}

.booking-form input {
    padding: 0.65rem;
    border: 1px solid var(--hh-border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--hh-font-body);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--hh-text);
}

.booking-form input:focus {
    outline: none;
    border-color: var(--hh-gold);
    box-shadow: 0 0 0 2px rgba(184, 147, 90, 0.25);
}

.booking-form button {
    grid-column: 1 / -1;
}

.price-preview {
    grid-column: 1 / -1;
    font-weight: 600;
    color: var(--hh-green);
}

.booking-price-original {
    text-decoration: line-through;
    color: var(--hh-text-muted);
    font-weight: 500;
    margin-right: 0.5rem;
}

.discount-code-form {
    display: flex;
    align-items: end;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 1.25rem;
}

.discount-code-form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--hh-green-deep);
    gap: 0.35rem;
}

.booking-error {
    grid-column: 1 / -1;
    color: var(--hh-error);
    font-weight: 500;
}

/* ---------- about / contact ---------- */

.about-section, .contact-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--hh-gold);
}

.about-section h2, .contact-section h2 {
    color: var(--hh-green-deep);
}

/* ---------- footer ---------- */

.site-footer {
    background: var(--hh-green-deep);
    border-top: 3px solid var(--hh-gold);
    margin-top: 3rem;
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--hh-text-on-green);
}

.site-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.site-footer p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: var(--hh-cream-deep);
}

.site-footer a {
    color: var(--hh-gold-light);
}

.footer-tagline {
    font-family: var(--hh-font-script);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--hh-gold-light);
    margin-bottom: 0.6rem;
}

.footer-admin-link {
    margin-top: 1rem;
}

.footer-admin-link a {
    font-size: 0.75rem;
    color: var(--hh-green-mid);
    opacity: 0.6;
}

.footer-admin-link a:hover {
    opacity: 1;
}

/* ---------- home hero CTA / view-all ---------- */

.hero-cta {
    display: inline-block;
    margin-top: 0.5rem;
}

.view-all-cta {
    text-align: center;
    margin: 1rem 0 2.5rem;
}

/* ---------- lodges showcase page ---------- */

.lodge-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.showcase-card {
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-top: 4px solid var(--hh-gold);
    border-radius: var(--hh-radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    box-shadow: 0 2px 10px rgba(31, 58, 44, 0.06);
}

.showcase-card > * {
    min-width: 0;
}

@media (min-width: 720px) {
    .showcase-card {
        grid-template-columns: 380px 1fr;
    }
}

.showcase-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.showcase-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: 0;
    border-top: none;
}

.showcase-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.showcase-body h2 {
    margin-top: 0;
}

.showcase-body .lodge-price {
    margin-top: auto;
}

.showcase-body .btn {
    align-self: flex-start;
}

/* ---------- owners page ---------- */

.owner-benefits {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem 1.5rem;
}

.owner-benefits li {
    padding-left: 1.4rem;
    position: relative;
}

.owner-benefits li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--hh-gold);
    font-weight: 700;
}

.packages-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--hh-gold);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.package-card {
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-top: 4px solid var(--hh-text-muted);
    border-radius: var(--hh-radius);
    padding: 1.5rem;
}

.package-card-gold {
    border-top-color: var(--hh-gold);
    box-shadow: 0 2px 14px rgba(184, 147, 90, 0.18);
}

.package-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

.package-price {
    font-weight: 700;
    color: var(--hh-green);
    margin-bottom: 1rem;
}

.package-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.package-card li {
    margin-bottom: 0.4rem;
}

.packages-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--hh-text-muted);
}

.owner-enquiry-fallback {
    margin-top: 1.25rem;
    text-align: center;
    color: var(--hh-text-muted);
}

.booking-form .full-width {
    grid-column: 1 / -1;
}

.booking-form textarea {
    padding: 0.65rem;
    border: 1px solid var(--hh-border);
    border-radius: 4px;
    font-family: var(--hh-font-body);
    font-size: 1rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--hh-text);
    resize: vertical;
}

.booking-form textarea:focus {
    outline: none;
    border-color: var(--hh-gold);
    box-shadow: 0 0 0 2px rgba(184, 147, 90, 0.25);
}

/* ---------- admin ---------- */

.admin-login-section {
    max-width: 420px;
    margin: 0 auto;
}

/*
 * auto-fit/minmax instead of a hardcoded column count — a fixed repeat(N, 1fr)
 * silently breaks (one button wraps alone onto its own row) every time a
 * button is added or removed without someone remembering to update N here too.
 * This sizes itself to however many buttons actually exist.
 */
.admin-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    grid-auto-rows: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 500px) {
    .admin-toolbar {
        grid-template-columns: repeat(2, 1fr);
    }
}

.admin-toolbar .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 64px;
    box-sizing: border-box;
}

.admin-lodge-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-new-code-panel {
    background: var(--hh-cream-deep);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.admin-new-code-panel h2 {
    margin-top: 0;
}

.admin-calendar-multi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 700px) {
    .admin-calendar-multi {
        grid-template-columns: 1fr;
    }
}

.admin-calendar-lodge-block {
    position: relative;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    padding: 1rem;
    background: var(--hh-surface);
}

.admin-calendar-lodge-heading {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    text-align: center;
}

.admin-calendar-lodge-heading-link {
    text-decoration: none;
    display: block;
}

.admin-calendar-lodge-heading-link .admin-calendar-lodge-heading {
    color: var(--hh-green);
    transition: color 0.15s;
}

.admin-calendar-lodge-heading-link:hover .admin-calendar-lodge-heading {
    color: var(--hh-gold);
    text-decoration: underline;
}

.admin-calendar-legend-dot {
    position: static;
    display: inline-block;
}

.admin-calendar-grid-compact {
    gap: 2px;
}

.admin-calendar-grid-compact .admin-calendar-day {
    min-height: 36px;
    padding: 0.2rem;
}

.admin-calendar-grid-compact .admin-calendar-day-number {
    font-size: 0.7rem;
}

.admin-calendar-grid-compact .admin-calendar-weekday {
    font-size: 0.65rem;
    padding-bottom: 0.2rem;
}

.admin-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
}

.admin-calendar-nav h2 {
    margin: 0;
    font-size: 1.3rem;
    text-align: center;
    flex: 1;
}

#admin-calendar-container.admin-calendar-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.15s;
}

.admin-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.admin-calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--hh-text-muted);
}

.admin-calendar-swatch {
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 3px;
}

.admin-calendar-swatch-airbnb { background: #e08585; }
.admin-calendar-swatch-vrbo { background: #6f9bd6; }
.admin-calendar-swatch-direct { background: var(--hh-green-mid); }
.admin-calendar-swatch-manual { background: #a8a49a; }
.admin-calendar-swatch-clean { background: #b48ed6; }
.admin-calendar-swatch-owner { background: #d6a23a; }
.admin-calendar-swatch-platform-blocked {
    background: repeating-linear-gradient(45deg, #d8d4c8, #d8d4c8 3px, #c3beae 3px, #c3beae 6px);
}

.admin-calendar-select-popup {
    position: absolute;
    z-index: 20;
    width: 220px;
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    padding: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.admin-calendar-select-range {
    margin: 0 0 0.6rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

.admin-calendar-action-select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    font-family: var(--hh-font-body);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.admin-calendar-select-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-calendar-select-form[hidden] {
    display: none;
}

.admin-calendar-select-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.admin-calendar-select-form input[type="text"] {
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    font-family: var(--hh-font-body);
}

.admin-calendar-select-form .btn {
    width: 100%;
}

.admin-calendar-select-cancel {
    width: 100%;
    margin-top: 0.5rem;
}

.admin-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    user-select: none;
}

.admin-lodge-cal-wrap {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.admin-lodge-cal-grid {
    gap: 6px;
}

.admin-lodge-cal-grid .admin-calendar-day {
    min-height: 72px;
    padding: 0.5rem;
}

.admin-lodge-cal-grid .admin-calendar-day-number {
    font-size: 0.95rem;
}

.admin-calendar-weekday {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hh-text-muted);
    padding-bottom: 0.4rem;
}

.admin-calendar-day {
    position: relative;
    min-height: 40px;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    background: var(--hh-surface);
    padding: 0.4rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-calendar-day-free {
    cursor: pointer;
}

.admin-calendar-day-free:hover {
    border-color: var(--hh-green-mid);
    background: var(--hh-cream-deep);
}

.admin-calendar-day-past {
    opacity: 0.4;
}

/* A week of next month's days trailing on after the current month ends —
   dimmed to read as "not quite this month" while staying fully clickable,
   so a drag that starts near month-end can reach into them in one motion. */
.admin-calendar-day-next-month {
    opacity: 0.55;
}

.admin-calendar-day-next-month .admin-calendar-day-number {
    font-style: italic;
}

.admin-calendar-day-picking {
    background: var(--hh-gold-light);
    border-color: var(--hh-gold);
}

.admin-calendar-day-booked-cell {
    cursor: pointer;
}

.admin-calendar-day-popover-trigger {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.admin-calendar-popover {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    margin-bottom: 4px;
    min-width: 160px;
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    padding: 0.6rem 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-align: left;
    white-space: normal;
}

.admin-calendar-popover p {
    margin: 0 0 0.3rem;
    font-size: 0.8rem;
}

.admin-calendar-popover p:last-child {
    margin-bottom: 0;
}

.admin-calendar-popover-source {
    font-weight: 600;
    color: var(--hh-text-muted);
    text-transform: uppercase;
    font-size: 0.65rem !important;
    letter-spacing: 0.03em;
}

.admin-calendar-popover-name {
    font-size: 0.9rem !important;
}

.admin-calendar-popover-action {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    text-decoration: none;
}

.admin-btn-danger-text {
    color: var(--hh-error);
}

.admin-btn-danger-text:hover {
    text-decoration: underline;
}

.admin-calendar-popover-note-form {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.admin-calendar-popover-note-form input[type="text"] {
    width: 110px;
    padding: 0.3rem 0.4rem;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    font-size: 0.8rem;
}

.admin-calendar-popover-note-form .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

.admin-calendar-task-marker {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1.5px solid var(--hh-surface);
    padding: 0;
    cursor: pointer;
    z-index: 2;
}

.admin-calendar-task-marker-open {
    background: var(--hh-gold);
}

.admin-calendar-task-marker-done {
    background: var(--hh-text-muted);
    opacity: 0.6;
}

.admin-calendar-task-popover {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 4px;
    min-width: 190px;
}

.admin-calendar-task-row {
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--hh-border);
}

.admin-calendar-task-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.admin-calendar-task-row-done .admin-calendar-popover-name {
    text-decoration: line-through;
    color: var(--hh-text-muted);
}

.admin-calendar-task-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.2rem;
}

.admin-calendar-task-actions .admin-calendar-popover-action {
    margin-top: 0;
}

.admin-calendar-checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem !important;
}

.admin-calendar-checkbox-label input[type="checkbox"] {
    width: auto;
}

.admin-task-settings-defaults {
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    padding: 1rem 1.25rem;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.admin-task-settings-defaults legend {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0 0.4rem;
}

.admin-task-settings-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.admin-task-settings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-task-settings-table th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--hh-text-muted);
    font-weight: 600;
    padding: 0 0.75rem 0.6rem 0;
    border-bottom: 1px solid var(--hh-border);
}

.admin-task-settings-table td {
    padding: 0.6rem 0.75rem 0.6rem 0;
    border-bottom: 1px solid var(--hh-border);
    vertical-align: middle;
}

.admin-task-settings-table tr:last-child td {
    border-bottom: none;
}

.admin-task-settings-table select {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    font-family: var(--hh-font-body);
    font-size: 0.85rem;
}

.admin-calendar-day-empty {
    border: none;
    background: transparent;
}

.admin-calendar-day-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hh-text-muted);
}

.admin-calendar-day-airbnb {
    background: #fbe9e9;
    border-color: #e08585;
}

.admin-calendar-day-vrbo {
    background: #e8f0fb;
    border-color: #6f9bd6;
}

.admin-calendar-day-direct {
    background: #e7ede9;
    border-color: var(--hh-green-mid);
}

.admin-calendar-day-manual {
    background: #f0efeb;
    border-color: #a8a49a;
}

.admin-calendar-day-clean {
    background: #f1e7f8;
    border-color: #b48ed6;
}

.admin-calendar-day-owner {
    background: #faf1dd;
    border-color: #d6a23a;
}

.admin-calendar-day-platform-blocked {
    background: repeating-linear-gradient(45deg, #f2f0ea, #f2f0ea 5px, #e6e3d9 5px, #e6e3d9 10px);
    border-color: #b9b3a0;
}

/* A hatched "blocked on Airbnb/Vrbo" day that starts right after a real
   checkout is probably Kelly's own cleaning buffer, not an unexplained
   block — flag it with a small lilac dot (same hue as a real Clean block)
   so that reads at a glance, without needing to open the popover. */
.admin-calendar-day-likely-cleaning::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b48ed6;
    border: 1px solid #8c5bb3;
}

@media (max-width: 700px) {
    .admin-calendar-grid {
        gap: 2px;
    }

    .admin-calendar-day {
        min-height: 40px;
        padding: 0.25rem;
    }

    .admin-calendar-weekday {
        font-size: 0.65rem;
    }
}

.admin-qr-code {
    max-width: 220px;
    margin: 1rem 0;
    background: #fff;
    padding: 1rem;
    border-radius: var(--hh-radius);
}

.admin-qr-code svg {
    display: block;
    width: 100%;
    height: auto;
}

.admin-rates-list {
    margin-top: 1.5rem;
}

.admin-lodge-row {
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-left: 4px solid var(--hh-gold);
    border-radius: var(--hh-radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-lodge-row-inactive {
    border-left-color: var(--hh-text-muted);
    opacity: 0.7;
}

.admin-lodge-row h2 {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.admin-badge {
    display: inline-block;
    font-family: var(--hh-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--hh-text-muted);
    color: #fff;
}

.admin-badge-gold {
    background: var(--hh-gold);
    color: var(--hh-green-deep);
}

.admin-badge-green {
    background: var(--hh-green);
    color: #fff;
}

.admin-stripe-status {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.admin-lodge-row-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.admin-lodge-row-actions form {
    display: contents;
}

.admin-btn-danger {
    color: var(--hh-error);
    border-color: var(--hh-error);
}

.admin-btn-danger:hover {
    background: var(--hh-error);
    color: #fff;
    border-color: var(--hh-error);
}

/*
 * .admin-lodge-form never had its own grid/field styling — it was relying
 * on .booking-form's rules by coincidence of similar markup, which only
 * looked right by accident on short forms. Giving it the same real grid
 * (and the same .full-width escape hatch) here fixes every admin page that
 * uses this class, not just one.
 */
.admin-lodge-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
    margin-top: 1rem;
}

.admin-lodge-form .full-width {
    grid-column: 1 / -1;
}

.admin-lodge-form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--hh-green-deep);
    gap: 0.35rem;
}

.admin-lodge-form input,
.admin-lodge-form select,
.admin-lodge-form textarea {
    padding: 0.65rem;
    border: 1px solid var(--hh-border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--hh-font-body);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--hh-text);
    width: 100%;
    box-sizing: border-box;
}

.admin-lodge-form textarea {
    resize: vertical;
    min-height: 6rem;
}

.admin-lodge-form input:focus,
.admin-lodge-form select:focus,
.admin-lodge-form textarea:focus {
    outline: none;
    border-color: var(--hh-gold);
    box-shadow: 0 0 0 2px rgba(184, 147, 90, 0.25);
}

.admin-lodge-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

.admin-lodge-form .admin-hint {
    text-transform: none;
    font-weight: 400;
    letter-spacing: normal;
    color: var(--hh-text-muted);
    font-size: 0.8rem;
}

.admin-subsection {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--hh-gold);
}

.admin-subsection-first {
    margin-top: 1rem;
    padding-top: 0;
    border-top: none;
}

.admin-subsection h2 {
    margin-top: 0;
}

.admin-subsection .admin-hint {
    color: var(--hh-text-muted);
    font-size: 0.9rem;
}

.admin-amenities-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem 2rem;
    margin-top: 1rem;
}

.admin-amenity-group {
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    padding: 0.75rem 1rem 1rem;
}

.admin-amenity-group legend {
    font-weight: 600;
    color: var(--hh-green);
    padding: 0 0.25rem;
}

.admin-amenity-group .filter-checkbox {
    margin: 0.35rem 0;
}

.admin-amenities-form .btn {
    grid-column: 1 / -1;
    justify-self: start;
}

.admin-rate-heading {
    margin: 1.5rem 0 0.25rem;
    font-size: 1.05rem;
    color: var(--hh-green-deep);
    border-top: 1px solid var(--hh-border);
    padding-top: 1.25rem;
}

.admin-rate-heading:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0.5rem;
}

.admin-price-summary {
    margin-top: 0.3rem;
}

.admin-photo-upload-form {
    display: flex;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--hh-border);
}

.admin-photo-upload-form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--hh-green-deep);
    gap: 0.35rem;
}

.admin-photo-upload-form .admin-hint {
    font-weight: 400;
    color: var(--hh-text-muted);
    font-size: 0.8rem;
}

.admin-photo-upload-form select,
.admin-photo-upload-form input[type="text"] {
    padding: 0.5rem 0.6rem;
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.admin-photo-item {
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    overflow: hidden;
    background: var(--hh-surface);
}

.admin-photo-item img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.admin-photo-details-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem;
    border-top: 1px solid var(--hh-border);
}

.admin-photo-details-form select,
.admin-photo-details-form input[type="text"] {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
}

.admin-photo-details-form .btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
}

.admin-photo-item-actions {
    display: flex;
    border-top: 1px solid var(--hh-border);
}

.admin-photo-item-actions .btn {
    flex: 1;
    text-align: center;
    border-radius: 0;
    border-width: 1px 0 0;
    border-left-width: 1px;
    font-size: 0.75rem;
    padding: 0.5rem;
}

.admin-photo-item-actions .btn:first-child {
    border-left-width: 0;
}

.admin-btn-disabled {
    opacity: 0.35;
    pointer-events: none;
}
