:root {
    --ink: #17211f;
    --muted: #66726d;
    --line: #ddd8cf;
    --surface: #f7f7f3;
    --paper: #ffffff;
    --green: #2f6b5f;
    --green-dark: #204b43;
    --coral: #c76e4a;
    --gold: #d59f39;
    --danger: #a93f3f;
    --shadow: 0 18px 48px rgba(23, 33, 31, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
    z-index: 20;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    background: var(--ink);
    color: white;
}

.site-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(247, 247, 243, 0.95);
    backdrop-filter: blur(14px);
}

.nav,
.admin-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 8px;
    background: var(--green);
    color: white;
}

.nav-links,
.admin-links {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-weight: 700;
}

.nav-links a:hover,
.admin-links a:hover,
.text-link:hover {
    color: var(--green);
}

.nav-cta {
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--ink);
    color: white !important;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero,
.page-hero,
.property-hero {
    padding: 74px 0 48px;
    background:
        linear-gradient(135deg, rgba(47, 107, 95, 0.14), transparent 42%),
        linear-gradient(45deg, rgba(199, 110, 74, 0.13), transparent 54%),
        var(--surface);
}

.hero-grid,
.property-hero-grid,
.contact-grid,
.detail-layout,
.feature-panel,
.admin-form-grid {
    display: grid;
    gap: 28px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
}

.hero-copy h1,
.page-hero h1,
.property-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 4.8rem);
    line-height: 1;
}

.hero-text,
.page-hero p,
.property-hero p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.08rem;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-actions,
.card-actions,
.form-submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    text-align: center;
}

.btn-primary {
    background: var(--green);
    color: white;
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-secondary {
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
}

.btn-whatsapp {
    background: #1f9d55;
    color: white;
}

.btn-booking {
    background: #003b95;
    color: white;
}

.btn-booking:hover {
    background: #002f78;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-small {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.9rem;
}

.full-width {
    width: 100%;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 34px 0 0;
}

.trust-row div,
.booking-card,
.property-card,
.summary-panel,
.contact-panel,
.admin-panel,
.stat-card,
.panel-form {
    border: 1px solid rgba(23, 33, 31, 0.09);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.trust-row div {
    padding: 16px;
}

.trust-row dt {
    font-weight: 900;
}

.trust-row dd {
    margin: 4px 0 0;
    color: var(--muted);
}

.hero-card {
    overflow: hidden;
    border-radius: 8px;
    background: var(--ink);
    box-shadow: var(--shadow);
}

.hero-card img,
.card-image img,
.gallery-main,
.gallery-thumbs img,
.admin-photo img {
    width: 100%;
    object-fit: cover;
}

.hero-card img {
    aspect-ratio: 4 / 3;
}

.hero-card-body {
    padding: 22px;
    color: white;
}

.hero-card-body p {
    color: rgba(255, 255, 255, 0.78);
}

.section {
    padding: 72px 0;
}

.section-muted {
    background: #eef2ec;
}

.section-heading {
    margin-bottom: 26px;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2,
.content-stack h2,
.content-page h2,
.booking-card h2,
.booking-card h3,
.admin-panel h2 {
    margin: 0 0 10px;
    line-height: 1.15;
}

.feature-panel {
    grid-template-columns: 1fr 340px;
    align-items: start;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.icon-list,
.rule-list {
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.icon-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.icon-list li,
.rule-list li,
.amenity-grid li {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.property-card {
    overflow: hidden;
}

.card-image {
    display: block;
    background: var(--ink);
}

.card-image img {
    aspect-ratio: 4 / 3;
}

.property-card-body {
    padding: 18px;
}

.card-topline,
.meta-row,
.summary-list div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.card-topline {
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.88rem;
}

.property-card h3 {
    margin: 10px 0 8px;
    font-size: 1.25rem;
}

.property-card p,
.booking-card p,
.content-page p,
.contact-panel p {
    color: var(--muted);
}

.meta-row {
    color: var(--muted);
    font-size: 0.94rem;
}

.meta-row.large {
    margin-top: 18px;
    color: var(--ink);
    font-weight: 800;
}

.card-actions {
    justify-content: space-between;
    margin-top: 18px;
}

.card-action-buttons,
.booking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-action-buttons {
    justify-content: flex-end;
}

.booking-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.status-dot,
.status-pill,
.status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #e5f0ec;
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 900;
}

.status-limited {
    background: #fff1d6;
    color: #7a520d;
}

.status-unavailable {
    background: #f5dddd;
    color: #8f2f2f;
}

.page-hero.compact {
    padding: 58px 0;
}

.property-hero-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
}

.booking-card,
.contact-panel,
.summary-panel,
.admin-panel,
.panel-form {
    padding: 22px;
}

.price-line {
    display: block;
    margin: 14px 0;
    font-size: 1.3rem;
}

.gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr);
    gap: 12px;
    margin-top: -20px;
}

.gallery-main,
.gallery-thumbs img,
.gallery-empty {
    border-radius: 8px;
}

.gallery-main {
    aspect-ratio: 16 / 10;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.gallery-thumbs img {
    aspect-ratio: 16 / 10;
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
}

.content-stack {
    display: grid;
    gap: 34px;
}

.amenity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sticky-card {
    position: sticky;
    top: 96px;
}

.form {
    display: grid;
    gap: 16px;
}

.form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.form input,
.form select,
.form textarea,
td select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: white;
    color: var(--ink);
}

.form textarea {
    resize: vertical;
}

.form-grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.narrow {
    max-width: 760px;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
}

.field-error {
    color: var(--danger);
    font-size: 0.88rem;
    font-weight: 700;
}

.flash-wrap {
    padding-top: 16px;
}

.flash {
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.flash-success {
    background: #e5f0ec;
    color: var(--green-dark);
}

.flash-error {
    background: #f5dddd;
    color: var(--danger);
}

.image-placeholder {
    display: grid;
    min-height: 260px;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(47, 107, 95, 0.86), rgba(23, 33, 31, 0.96)),
        var(--green);
    color: white;
    font-weight: 900;
}

.contact-grid {
    grid-template-columns: 340px 1fr;
    align-items: start;
}

.content-page {
    max-width: 820px;
}

.summary-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.summary-list div {
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.summary-list dt {
    font-weight: 900;
}

.summary-list dd {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    padding: 54px 0 24px;
    background: var(--ink);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    gap: 28px;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.76);
}

.site-footer h2 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.site-footer a {
    display: block;
    margin: 7px 0;
}

.brand-footer {
    color: white;
}

.footer-bottom {
    width: min(1120px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.admin-body {
    background: #eef2ec;
}

.admin-main {
    padding: 34px 0 70px;
}

.admin-page-heading,
.admin-panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.admin-page-heading h1 {
    margin: 0;
    font-size: 2rem;
}

.admin-links form {
    margin: 0;
}

.link-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 800;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

small {
    color: var(--muted);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-actions form {
    margin: 0;
}

.admin-login {
    display: grid;
    min-height: calc(100vh - 76px);
    place-items: center;
}

.login-card {
    width: min(440px, 100%);
}

.admin-form-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
}

.wide-panel {
    grid-column: 1 / -1;
}

.check-row {
    display: flex !important;
    grid-template-columns: auto 1fr;
    flex-direction: row;
    align-items: center;
}

.check-row input {
    width: auto;
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-photo {
    display: grid;
    gap: 8px;
}

.admin-photo img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-row a {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.filter-row .active {
    background: var(--green);
    color: white;
}

.message-cell {
    max-width: 320px;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: white;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero-grid,
    .property-hero-grid,
    .detail-layout,
    .feature-panel,
    .contact-grid,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .property-grid,
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .sticky-card {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .hero,
    .page-hero,
    .property-hero {
        padding: 46px 0 34px;
    }

    .hero-copy h1,
    .page-hero h1,
    .property-hero h1 {
        font-size: 2.35rem;
    }

    .trust-row,
    .property-grid,
    .stat-grid,
    .form-grid.two,
    .amenity-grid,
    .icon-list,
    .admin-photo-grid {
        grid-template-columns: 1fr;
    }

    .admin-links {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 12px;
    }

    .admin-page-heading,
    .split-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .card-actions,
    .card-action-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    th,
    td {
        min-width: 150px;
    }
}
