:root {
    color-scheme: light;
    font-family: "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #16302d;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 32%),
        linear-gradient(180deg, #f5faf9, #edf4f3);
}

.embed-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px;
}

.hero {
    margin-bottom: 20px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 700;
}

.subtitle {
    max-width: 760px;
    color: #4f6764;
}

.panel,
.result-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(22, 48, 45, 0.08);
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(22, 48, 45, 0.08);
}

.panel {
    padding: 18px;
}

.filters-preview {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(240px, 1.35fr) minmax(190px, 1fr) minmax(180px, 0.9fr);
    gap: 12px;
    align-items: start;
}

.filters-preview > div {
    padding: 14px;
    border-radius: 14px;
    background: #f3f8f8;
}

.filters-preview select,
.filters-preview input,
.guest-preview,
.empty-preview,
.passenger-summary,
.date-picker-summary {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(22, 48, 45, 0.12);
    border-radius: 12px;
    background: white;
    font: inherit;
}

.guest-preview {
    display: flex;
    align-items: center;
}

.empty-preview {
    display: flex;
    align-items: center;
    color: #6a817e;
}

.label {
    display: block;
    margin-bottom: 6px;
    color: #5b7370;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.value {
    font-weight: 700;
}

.passenger-card {
    position: relative;
}

.date-picker {
    position: relative;
}

.date-picker.is-disabled {
    opacity: 0.72;
}

.date-picker.is-disabled .date-picker-summary {
    cursor: not-allowed;
}

.children-years {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.passenger-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #4f6764;
    font-size: 13px;
}

.passenger-field span {
    font-weight: 600;
}

.passenger-details {
    position: relative;
}

.passenger-details[open] {
    z-index: 3;
}

.passenger-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #16302d;
}

.passenger-summary::-webkit-details-marker,
.date-picker-summary::-webkit-details-marker {
    display: none;
}

.date-picker-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #16302d;
    white-space: nowrap;
}

.date-picker-popover,
.passenger-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(640px, 90vw);
    padding: 18px;
    border-radius: 16px;
    background: white;
    border: 1px solid rgba(22, 48, 45, 0.12);
    box-shadow: 0 18px 38px rgba(22, 48, 45, 0.14);
    z-index: 4;
}

.passenger-popover {
    width: min(320px, 80vw);
}

.date-picker-header {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.date-picker-months {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.date-picker-month-title {
    text-align: center;
    font-weight: 700;
    color: #294744;
}

.date-picker-calendars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.calendar-grid {
    min-height: 220px;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-weekdays {
    margin-bottom: 10px;
    color: #6a817e;
    font-size: 12px;
    text-align: center;
}

.calendar-day,
.calendar-spacer {
    min-height: 34px;
}

.calendar-day {
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #95a9a7;
    font: inherit;
    cursor: default;
}

.calendar-day.is-available {
    border-color: rgba(22, 48, 45, 0.18);
    color: #16302d;
    background: white;
    cursor: pointer;
}

.calendar-day.is-selected {
    border-color: var(--brand-color);
    background: color-mix(in srgb, var(--brand-color) 18%, white);
    color: #16302d;
}

.calendar-day.is-in-range {
    border-color: rgba(15, 118, 110, 0.24);
    background: rgba(15, 118, 110, 0.08);
    color: #16302d;
}

.calendar-day.is-muted {
    opacity: 0.55;
}

.calendar-day:disabled {
    opacity: 0.45;
}

.calendar-nav {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f3f8f8;
    cursor: pointer;
    font: inherit;
    font-size: 20px;
    line-height: 1;
}

.calendar-nav:disabled {
    opacity: 0.4;
    cursor: default;
}

.passenger-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.passenger-row strong,
.passenger-field span {
    display: block;
    color: #16302d;
}

.passenger-row small {
    color: #6a817e;
}

.counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.counter button {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(22, 48, 45, 0.12);
    border-radius: 8px;
    background: white;
    font: inherit;
    cursor: pointer;
}

.counter span {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
}

.submit-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.apply-button {
    min-height: 44px;
    width: 100%;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--brand-color);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.results-grid {
    margin-top: 20px;
}

.results-summary {
    margin-bottom: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(22, 48, 45, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(22, 48, 45, 0.06);
    color: #304b47;
    font-weight: 600;
}

.result-card {
    padding: 20px;
}

.hotel-card {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    padding: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}

.hotel-media {
    min-height: 240px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0.04));
    border-radius: 18px;
    overflow: hidden;
}

.hotel-media img,
.hotel-image-fallback {
    display: block;
    width: 100%;
    height: 100%;
}

.hotel-media img {
    object-fit: cover;
}

.hotel-image-fallback {
    display: grid;
    place-items: center;
    padding: 24px;
    color: #31514d;
    font-weight: 700;
    text-align: center;
}

.hotel-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 20px;
    padding: 0 18px 0 22px;
    min-height: 240px;
    align-items: stretch;
}

.hotel-location {
    margin: 0 0 6px;
    color: #68807d;
    font-size: 14px;
}

.hotel-main {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.hotel-main h2 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.05;
    color: #173633;
}

.hotel-stars {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 14px;
    color: #0f766e;
    font-size: 18px;
}

.hotel-facts {
    display: grid;
    gap: 6px;
    color: #35514d;
}

.hotel-facts p {
    margin: 0;
}

.hotel-inline-actions {
    margin-top: auto;
    padding-top: 18px;
}

.hotel-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    text-align: right;
}

.travel-dates {
    display: block;
    color: #35514d;
    font-weight: 600;
    font-size: 15px;
}

.hotel-price {
    display: grid;
    gap: 6px;
}

.hotel-price strong {
    font-size: 22px;
    line-height: 1;
    color: #0d2220;
}

.hotel-price span {
    color: #68807d;
    font-size: 14px;
}

.details-button {
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    background: #f4faf9;
    color: #0f5d57;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.details-button {
    cursor: pointer;
}

.details-shell {
    padding-bottom: 40px;
}

.details-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px 20px;
}

.back-link {
    color: #0f5d57;
    font-weight: 700;
    text-decoration: none;
}

.details-trip-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    color: #5c7672;
    font-size: 14px;
}

.details-hero {
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    overflow: hidden;
}

.details-hero-media {
    min-height: 380px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0.04));
}

.details-cover-image,
.details-cover-fallback {
    display: block;
    width: 100%;
    height: 100%;
}

.details-cover-image {
    object-fit: cover;
}

.details-cover-fallback {
    display: grid;
    place-items: center;
    padding: 32px;
    color: #31514d;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.details-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.details-location {
    margin-bottom: 10px;
}

.details-hero-copy h1 {
    margin: 0 0 14px;
    color: #173633;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 0.96;
}

.details-stars {
    margin-bottom: 18px;
}

.details-description {
    margin: 0 0 20px;
    color: #44615d;
    font-size: 16px;
    line-height: 1.7;
}

.details-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.details-fact-card {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f4f9f8;
    border: 1px solid rgba(22, 48, 45, 0.08);
}

.details-fact-card strong,
.details-fact-card a {
    color: #173633;
    overflow-wrap: anywhere;
}

.details-fact-label {
    display: block;
    margin-bottom: 4px;
    color: #69827f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.details-section {
    margin-top: 18px;
    padding: 22px;
}

.details-section-heading {
    margin-bottom: 16px;
}

.details-section-heading h2 {
    margin: 0 0 4px;
    color: #173633;
    font-size: 26px;
}

.details-section-heading p {
    margin: 0;
    color: #617a76;
}

.details-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.details-gallery-item {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    min-height: 170px;
    background: #eef5f4;
}

.details-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-map-wrap {
    display: grid;
    gap: 14px;
}

.details-map-frame {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 20px;
    background: #eef5f4;
}

.details-copy-block {
    color: #44615d;
    line-height: 1.7;
}

.details-copy-block p {
    margin: 0;
}

.details-empty-state {
    padding: 18px;
    border-radius: 16px;
    background: #f4f9f8;
    color: #44615d;
}

.details-empty-state strong {
    display: block;
    margin-bottom: 6px;
    color: #173633;
}

.details-empty-state p {
    margin: 0;
}

.room-offers-table-wrap {
    overflow-x: auto;
}

.room-offers-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.room-offers-table th,
.room-offers-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(22, 48, 45, 0.1);
    text-align: left;
}

.room-offers-table th {
    color: #617a76;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.room-offers-table td {
    color: #23413d;
}

.room-offers-price {
    white-space: nowrap;
    font-weight: 700;
}

.empty-state h2 {
    margin-top: 0;
    color: #173633;
}

.empty-state p {
    margin-bottom: 0;
    color: #5f7874;
}

.placeholder h2 {
    margin-top: 0;
    color: var(--brand-color);
}

.not-available-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.not-available-panel {
    max-width: 720px;
}

@media (max-width: 640px) {
    .embed-shell {
        padding: 16px;
    }

    .results-summary {
        padding: 12px 14px;
    }

    .date-picker-popover {
        width: min(320px, calc(100vw - 48px));
    }

    .date-picker-months,
    .date-picker-calendars {
        grid-template-columns: 1fr;
    }

    .calendar-grid:last-child,
    .date-picker-month-title:last-child {
        display: none;
    }

    .passenger-popover {
        width: min(280px, calc(100vw - 48px));
    }
}

@media (max-width: 1180px) {
    .filters-preview {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .hotel-card {
        grid-template-columns: 1fr;
    }

    .hotel-content {
        grid-template-columns: 1fr;
    }

    .hotel-side {
        align-items: flex-start;
        text-align: left;
    }

    .details-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hotel-main h2,
    .hotel-price strong,
    .details-section-heading h2 {
        font-size: 24px;
    }

    .details-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .details-trip-meta {
        justify-content: flex-start;
    }

    .details-facts-grid {
        grid-template-columns: 1fr;
    }

    .details-hero-media {
        min-height: 280px;
    }

    .details-map-frame {
        min-height: 280px;
    }
}
