:root {
    --sea: #0077b6;
    --sea-dark: #023e8a;
    --aqua: #48cae4;
    --sand: #fff5df;
    --ink: #102a43;
    --muted: #627d98;
    --card: rgba(255, 255, 255, .92);
    --border: rgba(16, 42, 67, .12);
    --shadow: 0 24px 70px rgba(2, 62, 138, .18);
    --radius: 26px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(72, 202, 228, .18), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(255, 209, 102, .18), transparent 30%),
        #f6fbff;
}

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

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

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -.04em;
    font-size: 22px;
}

.logo-badge {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--sea), var(--aqua));
    display: grid;
    place-items: center;
    color: white;
    box-shadow: 0 12px 30px rgba(0,119,182,.28);
}

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

.hero {
    min-height: 680px;
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2,62,138,.84), rgba(0,119,182,.35), rgba(255,255,255,.08)),
        url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1800&q=85') center/cover;
    z-index: -2;
}

.hero:after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 180px;
    background: linear-gradient(transparent, #f6fbff);
    z-index: -1;
}

.hero-content {
    color: white;
    max-width: 820px;
    padding: 76px 0 120px;
}

.kicker {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(10px);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: .94;
    margin: 0 0 22px;
    letter-spacing: -.07em;
}

.hero p {
    font-size: 20px;
    max-width: 680px;
    color: rgba(255,255,255,.88);
    line-height: 1.6;
}

.search-card {
    margin-top: 34px;
    background: var(--card);
    color: var(--ink);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.search-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1fr 1fr .8fr auto;
    gap: 12px;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 13px 14px;
    font: inherit;
    background: white;
    color: var(--ink);
    outline: none;
}

textarea { min-height: 120px; resize: vertical; }

.btn {
    border: 0;
    border-radius: 16px;
    padding: 14px 20px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: .18s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--sea-dark), var(--sea), var(--aqua));
    box-shadow: 0 16px 35px rgba(0,119,182,.26);
}

.btn-light {
    color: var(--sea-dark);
    background: white;
    border: 1px solid var(--border);
}

.btn-danger {
    color: white;
    background: #d62828;
}

.btn:hover { transform: translateY(-1px); }

.section {
    padding: 76px 0;
}

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

.section-title {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
    margin: 0;
    letter-spacing: -.05em;
}

.section-text {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

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

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(16,42,67,.08);
}

.card-img {
    height: 250px;
    background: #dbeafe center/cover;
    position: relative;
}

.badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--sea-dark);
    font-weight: 900;
    font-size: 13px;
}

.card-img .badge {
    position: absolute;
    top: 14px;
    left: 14px;
}

.card-body { padding: 20px; }

.card h3 {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: -.04em;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.price {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 900;
}

.price strong {
    color: var(--sea-dark);
    font-size: 22px;
}

.feature-band {
    background:
        linear-gradient(135deg, rgba(2,62,138,.94), rgba(0,119,182,.88)),
        url('https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?auto=format&fit=crop&w=1600&q=85') center/cover;
    color: white;
    border-radius: 34px;
    padding: 46px;
    box-shadow: var(--shadow);
}

.feature-band p { color: rgba(255,255,255,.86); }

.property-hero {
    padding: 42px 0 18px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 28px;
    align-items: start;
}

.gallery-main {
    height: 520px;
    border-radius: 34px;
    background: #dbeafe center/cover;
    box-shadow: var(--shadow);
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.gallery-small {
    height: 150px;
    border-radius: 22px;
    background: #dbeafe center/cover;
}

.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 18px 50px rgba(16,42,67,.08);
}

.list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.list li {
    padding: 12px 14px;
    background: #f5fbff;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-weight: 700;
}

.notice {
    padding: 14px 16px;
    border-radius: 16px;
    background: #e8f7ef;
    color: #146c43;
    border: 1px solid #b7ebc6;
    margin: 16px 0;
    font-weight: 800;
}

.error {
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    margin: 16px 0;
    font-weight: 800;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px 1fr;
}

.sidebar {
    background: #061826;
    color: white;
    padding: 24px;
}

.sidebar a, .sidebar button {
    width: 100%;
    color: rgba(255,255,255,.84);
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    margin: 5px 0;
    background: transparent;
    border: 0;
    text-align: left;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.sidebar a:hover, .sidebar button:hover {
    background: rgba(255,255,255,.09);
    color: white;
}

.admin-main {
    padding: 32px;
}

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

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

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

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

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

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

.checks label {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
    font-weight: 700;
}

.checks input { width: auto; }

@media (max-width: 900px) {
    .search-grid, .cards, .detail-grid, .form-grid, .admin-shell {
        grid-template-columns: 1fr;
    }

    .nav-links { display: none; }
    .hero { min-height: auto; }
    .gallery-main { height: 360px; }
}

/* Airbnb-style listing page */
.airbnb-page {
    background: #fff;
}

.airbnb-top {
    padding: 34px 0 18px;
}

.airbnb-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.airbnb-title {
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: -.045em;
    line-height: 1.05;
    margin: 0 0 10px;
    color: #111;
}

.airbnb-subtitle {
    color: #555;
    font-weight: 700;
}

.airbnb-actions {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

.airbnb-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 8px;
    border-radius: 22px;
    overflow: hidden;
    margin-top: 24px;
    position: relative;
}

.airbnb-photo {
    background: #eee center/cover;
    min-height: 160px;
}

.airbnb-photo.main {
    grid-row: span 2;
}

.airbnb-photo:hover {
    filter: brightness(.92);
}

.airbnb-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 70px;
    align-items: start;
    padding-top: 42px;
}

.airbnb-host-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 28px;
    border-bottom: 1px solid #ddd;
}

.airbnb-host-row h2 {
    margin: 0 0 8px;
    font-size: 26px;
    letter-spacing: -.03em;
}

.airbnb-host-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff385c, #bd1e59);
    color: white;
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 900;
    flex: 0 0 auto;
}

.airbnb-feature-list {
    display: grid;
    gap: 20px;
    padding: 30px 0;
    border-bottom: 1px solid #ddd;
}

.airbnb-feature {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    align-items: start;
}

.airbnb-feature-icon {
    font-size: 27px;
    line-height: 1;
}

.airbnb-feature strong {
    display: block;
    margin-bottom: 4px;
}

.airbnb-feature span {
    color: #666;
}

.airbnb-section {
    padding: 32px 0;
    border-bottom: 1px solid #ddd;
}

.airbnb-section h2 {
    margin: 0 0 18px;
    font-size: 26px;
    letter-spacing: -.035em;
}

.airbnb-text {
    color: #333;
    line-height: 1.7;
    font-size: 17px;
}

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

.airbnb-amenity {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 16px;
    font-weight: 650;
}

.airbnb-book-card {
    position: sticky;
    top: 92px;
    border: 1px solid #ddd;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(0,0,0,.14);
    background: white;
}

.airbnb-price-line {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 18px;
}

.airbnb-price-line strong {
    font-size: 25px;
}

.airbnb-price-line span {
    color: #444;
}

.airbnb-picker-shell {
    border: 1px solid #999;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
}

.airbnb-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.airbnb-date-box {
    padding: 13px 14px;
    border: 0;
    background: white;
    text-align: left;
    cursor: pointer;
}

.airbnb-date-box:first-child {
    border-right: 1px solid #999;
}

.airbnb-date-box label,
.airbnb-guests-box label {
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: #111;
}

.airbnb-date-value,
.airbnb-guests-value {
    font-size: 16px;
    color: #111;
}

.airbnb-guests-box {
    padding: 13px 14px;
    border-top: 1px solid #999;
}

.airbnb-guests-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.airbnb-guests-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.airbnb-round-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #aaa;
    background: white;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.airbnb-calendar {
    display: none;
    border: 1px solid #ddd;
    border-radius: 22px;
    padding: 18px;
    margin: 14px 0;
    box-shadow: 0 18px 45px rgba(0,0,0,.10);
    background: white;
}

.airbnb-calendar.open {
    display: block;
}

.airbnb-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.airbnb-cal-nav {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    cursor: pointer;
    font-size: 22px;
}

.airbnb-months {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.airbnb-month-title {
    text-align: center;
    font-weight: 900;
    margin-bottom: 12px;
    font-size: 17px;
}

.airbnb-weekdays,
.airbnb-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.airbnb-weekdays div {
    color: #777;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    padding: 7px 0;
}

.airbnb-day {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 800;
    position: relative;
    user-select: none;
}

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

.airbnb-day.disabled {
    color: #aaa;
    text-decoration: line-through;
    cursor: not-allowed;
}

.airbnb-day.selected {
    background: #222;
    color: white;
}

.airbnb-day.in-range {
    background: #f1f1f1;
    border-radius: 0;
}

.airbnb-day.range-start {
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    background: #222;
    color: white;
}

.airbnb-day.range-end {
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    background: #222;
    color: white;
}

.airbnb-mini-note {
    text-align: center;
    color: #333;
    font-size: 14px;
    margin: 14px 0;
}

.airbnb-reserve-btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 16px 20px;
    background: linear-gradient(90deg, #e61e4d, #d70466);
    color: white;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    margin-top: 12px;
}

.airbnb-reserve-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.airbnb-costs {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.airbnb-cost-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.airbnb-cost-line.total {
    border-top: 1px solid #ddd;
    padding-top: 14px;
    font-weight: 900;
}

.airbnb-contact-fields {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.airbnb-contact-fields input,
.airbnb-contact-fields textarea {
    border-radius: 12px;
    padding: 12px;
}

.airbnb-mobile-calendar-title {
    display: none;
}

@media (min-width: 1150px) {
    .airbnb-months {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 950px) {
    .airbnb-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 160px 160px;
    }

    .airbnb-photo.main {
        grid-column: span 2;
        grid-row: span 1;
    }

    .airbnb-main-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .airbnb-book-card {
        position: static;
    }
}

@media (max-width: 620px) {
    .airbnb-title-row {
        display: block;
    }

    .airbnb-actions {
        margin-top: 12px;
    }

    .airbnb-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 320px;
    }

    .airbnb-gallery .airbnb-photo:not(.main) {
        display: none;
    }

    .airbnb-photo.main {
        grid-column: auto;
    }

    .airbnb-amenities {
        grid-template-columns: 1fr;
    }
}

/* Better Airbnb-style buttons and effects */
.pretty-btn,
.btn-primary,
.airbnb-reserve-btn,
.admin-save-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.pretty-btn::before,
.btn-primary::before,
.airbnb-reserve-btn::before,
.admin-save-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
    transition: .55s ease;
    z-index: -1;
}

.pretty-btn:hover::before,
.btn-primary:hover::before,
.airbnb-reserve-btn:hover::before,
.admin-save-btn:hover::before {
    transform: translateX(120%) skewX(-18deg);
}

.pretty-btn:hover,
.btn-primary:hover,
.airbnb-reserve-btn:hover,
.admin-save-btn:hover {
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 22px 45px rgba(0,0,0,.18);
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.hero-glass-btn {
    border: 1px solid rgba(255,255,255,.42);
    background: rgba(255,255,255,.16);
    color: white;
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.hero-glass-btn:hover {
    background: rgba(255,255,255,.25);
}

.floating-card {
    transition: transform .22s ease, box-shadow .22s ease;
}

.floating-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 28px 75px rgba(16,42,67,.16);
}

.card {
    transition: transform .22s ease, box-shadow .22s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.012);
    box-shadow: 0 28px 75px rgba(16,42,67,.16);
}

.admin-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fafc;
}

.admin-preview img {
    width: 110px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
}

.admin-help {
    color: var(--muted);
    font-size: 14px;
    margin: 8px 0 0;
}

.date-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    font-size: 13px;
}

.date-pill.available {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.date-pill.blocked {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.date-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0 18px;
    color: #555;
    font-weight: 800;
    font-size: 14px;
}

.date-legend.compact {
    justify-content: center;
    margin-top: 0;
}

.legend-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    margin-right: 6px;
}

.legend-dot.available {
    background: #22c55e;
}

.legend-dot.blocked {
    background: #aaa;
}

.airbnb-day.available-special:not(.disabled):not(.selected) {
    color: #166534;
    background: #dcfce7;
}

.airbnb-photo {
    border: 0;
    cursor: pointer;
}

.show-all-photos {
    position: absolute;
    right: 16px;
    bottom: 16px;
    border: 1px solid #111;
    background: white;
    color: #111;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.photo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.photo-modal.open {
    display: flex;
}

.photo-modal img {
    max-width: min(1100px, 92vw);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
}

.photo-modal-close {
    position: fixed;
    top: 22px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: white;
    color: #111;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.photo-modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 0;
    background: white;
    color: #111;
    font-size: 42px;
    cursor: pointer;
    line-height: .7;
}

.photo-modal-nav.left {
    left: 26px;
}

.photo-modal-nav.right {
    right: 26px;
}

.photo-modal-count {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: white;
    color: #111;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 900;
}

@media (max-width: 620px) {
    .photo-modal-nav {
        width: 44px;
        height: 44px;
        font-size: 34px;
    }

    .photo-modal-nav.left {
        left: 12px;
    }

    .photo-modal-nav.right {
        right: 12px;
    }
}
