:root {
    --paper: #fffdfa;
    --shell: #f5f0e8;
    --sand: #e7dccb;
    --ink: #171716;
    --navy: #10233f;
    --palm: #526f62;
    --gold: #b98a3a;
    --muted: #6d6a62;
    --line: #e3dbcf;
    --white: #ffffff;
    --error: #9f2d24;
    --success: #2e6f54;
    --shadow: 0 18px 45px rgba(20, 22, 20, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

p {
    margin-top: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 0 48px;
    background: rgba(255, 253, 250, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 750;
    color: var(--ink);
}

.brand-logo {
    display: block;
    width: auto;
    height: 42px;
}

.admin-brand-logo {
    display: block;
    width: auto;
    height: 42px;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--white);
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-size: 15px;
}

.site-nav a:hover,
.text-link:hover,
.footer-links a:hover,
.table-actions a:hover {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 8px;
}

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(680px, calc(100vh - 150px));
    padding: 80px 48px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(10, 17, 28, 0.72), rgba(10, 17, 28, 0.2) 52%, rgba(10, 17, 28, 0.1)),
        url("/assets/img/hero-dominican-coast.png") center / cover no-repeat;
}

.hero-content {
    width: min(680px, 100%);
}

.eyebrow,
.section-kicker,
.cta-band span {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 68px;
    line-height: 1;
    letter-spacing: 0;
}

.hero p:not(.eyebrow) {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.hero-actions,
.form-actions,
.image-card-actions {
    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: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
}

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

.btn-primary:hover {
    background: #07162a;
}

.btn-light {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
}

.btn-ghost {
    color: var(--ink);
    background: var(--white);
    border-color: var(--line);
}

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

.btn-full {
    width: 100%;
}

.section,
.cta-band,
.page-hero {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: 76px 0;
}

.section-intro {
    border-bottom: 1px solid var(--line);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.12;
    letter-spacing: 0;
}

.split-layout h2,
.section-heading h2,
.page-hero h1,
.cta-band h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
}

.split-layout p,
.page-hero p {
    color: var(--muted);
    font-size: 18px;
}

.section-heading,
.panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.text-link {
    color: var(--navy);
    font-weight: 800;
}

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

.offer-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(28, 25, 20, 0.05);
}

.offer-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--sand);
}

.offer-card-body {
    padding: 22px;
}

.offer-card h2,
.offer-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.offer-card p,
.offer-meta,
.muted {
    color: var(--muted);
}

.offer-meta {
    margin-bottom: 10px;
    font-size: 14px;
}

.offer-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.offer-card-footer strong {
    color: var(--navy);
}

.offer-stats,
.detail-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}

.offer-stats {
    grid-template-columns: repeat(3, 1fr);
}

.offer-stats div,
.detail-list div {
    display: grid;
    gap: 2px;
}

dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

dd {
    margin: 0;
    font-weight: 750;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 34px;
    background: var(--shell);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 76px;
    padding: 44px;
    color: var(--white);
    background: var(--palm);
    border-radius: 8px;
}

.cta-band h2 {
    max-width: 720px;
    margin-bottom: 0;
}

.page-hero {
    padding: 76px 0 34px;
}

.compact-hero {
    max-width: 880px;
    margin-left: max(24px, calc((100% - 1180px) / 2));
}

.offer-detail-hero {
    position: relative;
    min-height: 560px;
    color: var(--white);
    background: var(--navy);
}

.offer-detail-hero img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    opacity: 0.72;
}

.offer-detail-copy {
    position: absolute;
    left: max(24px, calc((100% - 1180px) / 2));
    bottom: 54px;
    width: min(720px, calc(100% - 48px));
}

.offer-detail-copy h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 52px;
}

.offer-detail-copy p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.offer-detail-copy strong {
    display: inline-block;
    margin-top: 8px;
    font-size: 24px;
}

.offer-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 54px;
    align-items: start;
}

.prose {
    color: #24231f;
    font-size: 17px;
}

.prose h2 {
    margin-top: 34px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
}

.detail-aside,
.contact-panel,
.admin-panel,
.login-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(28, 25, 20, 0.06);
}

.detail-aside {
    position: sticky;
    top: 96px;
    padding: 26px;
}

.detail-list {
    margin-bottom: 24px;
}

.detail-list div {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

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

.feature-list li {
    padding: 12px 14px;
    background: var(--shell);
    border-radius: 8px;
}

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

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: start;
}

.contact-panel {
    padding: 28px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 48px;
    color: var(--muted);
    background: var(--shell);
    border-top: 1px solid var(--line);
}

.site-footer strong {
    display: block;
    color: var(--ink);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.login-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(16, 35, 63, 0.92), rgba(82, 111, 98, 0.76)),
        url("/assets/img/hero-dominican-coast.png") center / cover no-repeat;
}

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

.login-brand {
    margin-bottom: 24px;
}

.admin-body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    background: #f7f5f0;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 26px;
    color: var(--white);
    background: #111a24;
}

.admin-brand {
    color: var(--white);
    margin-bottom: 34px;
}

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

.admin-nav a,
.admin-user a {
    color: rgba(255, 255, 255, 0.78);
    padding: 10px 12px;
    border-radius: 8px;
}

.admin-nav a:hover,
.admin-user a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.admin-user {
    display: grid;
    gap: 8px;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.72);
}

.admin-user span {
    padding: 0 12px;
}

.admin-main {
    padding: 34px;
}

.admin-page-title {
    margin-bottom: 24px;
}

.admin-page-title h1 {
    margin: 0;
    font-size: 34px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.stat-card {
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stat-card span {
    color: var(--muted);
    font-size: 13px;
}

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

.admin-panel {
    padding: 26px;
    margin-bottom: 24px;
}

.narrow-panel {
    max-width: 680px;
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

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

.admin-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.admin-table small {
    display: block;
    color: var(--muted);
}

.table-thumb {
    width: 74px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
}

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

.danger-link {
    color: var(--error);
}

.status-pill {
    display: inline-flex;
    padding: 5px 10px;
    color: var(--navy);
    background: var(--shell);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.admin-form {
    display: grid;
    gap: 18px;
}

.form-section {
    display: grid;
    gap: 16px;
    padding: 24px;
    margin-bottom: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.form-section h2 {
    margin-bottom: 0;
    font-size: 22px;
}

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

label {
    display: grid;
    gap: 7px;
    color: #38352f;
    font-size: 14px;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #d8d0c2;
    border-radius: 8px;
    font: inherit;
}

textarea {
    resize: vertical;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: end;
}

.checkbox-row input {
    width: 18px;
    min-height: 18px;
}

.alert {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-weight: 700;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

.alert-error {
    color: var(--error);
    background: #fff1ef;
    border: 1px solid #f3beb7;
}

.alert-success {
    color: var(--success);
    background: #ecf8f1;
    border: 1px solid #bfe5cc;
}

.upload-box {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.upload-box input {
    flex: 1 1 280px;
}

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

.image-manager-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.image-manager-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.main-label {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 5px 9px;
    color: var(--white);
    background: var(--gold);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hidden-form {
    display: none;
}

@media (max-width: 980px) {
    .site-header {
        padding: 0 24px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 74px;
        right: 24px;
        display: none;
        min-width: 220px;
        padding: 14px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
    }

    .hero {
        min-height: 620px;
        padding: 70px 24px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .split-layout,
    .offer-detail-layout,
    .contact-layout,
    .admin-body {
        grid-template-columns: 1fr;
    }

    .offer-grid,
    .gallery-grid,
    .image-manager-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-aside,
    .admin-sidebar {
        position: static;
    }

    .admin-sidebar {
        min-height: auto;
    }
}

@media (max-width: 680px) {
    .section,
    .cta-band,
    .page-hero {
        width: min(100% - 32px, 1180px);
    }

    .site-header,
    .site-footer,
    .cta-band {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-footer,
    .cta-band,
    .section-heading,
    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero h1 {
        font-size: 40px;
    }

    .split-layout h2,
    .section-heading h2,
    .page-hero h1,
    .cta-band h2,
    .offer-detail-copy h1 {
        font-size: 34px;
    }

    .offer-grid,
    .gallery-grid,
    .image-manager-grid,
    .stats-grid,
    .form-grid,
    .offer-stats,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .offer-detail-hero,
    .offer-detail-hero img {
        min-height: 520px;
        height: 520px;
    }

    .admin-main {
        padding: 20px;
    }
}
