: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 {
    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) 360px;
    gap: 28px;
    padding: 4px 18px 4px 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 12px;
    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: 8px;
    color: #35514d;
}

.hotel-facts p {
    margin: 0;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fact-icon,
.travel-date-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex: 0 0 16px;
}

.hotel-inline-actions {
    margin-top: auto;
    padding-top: 22px;
}

.hotel-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 26px;
    text-align: left;
    padding: 10px 8px 0 0;
}

.travel-dates {
    display: grid;
    gap: 8px;
    color: #35514d;
    font-weight: 600;
    font-size: 15px;
}

.travel-dates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 34px;
    width: fit-content;
    max-width: none;
    justify-content: start;
    justify-items: start;
    margin-left: auto;
    align-self: flex-end;
}

.travel-date-row {
    display: grid;
    gap: 3px;
}

.travel-date-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    min-width: 0;
}

.travel-date-label {
    color: #ef4444;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
}

.travel-date-copy {
    display: grid;
    gap: 6px;
}

.travel-date-value {
    color: #35514d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.travel-date-icon {
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

.hotel-price {
    display: grid;
    gap: 6px;
    width: fit-content;
    justify-items: end;
    margin-top: auto;
    margin-left: auto;
}

.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-trip-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5c7672;
    white-space: nowrap;
}

.details-trip-meta-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex: 0 0 14px;
    opacity: 0.9;
}

.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;
    min-width: 0;
}

.details-travel-dates {
    margin: 14px 0 18px;
    max-width: none;
}

.details-travel-dates-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 14px 28px;
    width: fit-content;
    align-self: flex-start;
}

.details-travel-date-card {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    column-gap: 4px;
    align-items: start;
    min-width: 150px;
}

.details-travel-date-icon {
    width: 16px;
    height: 16px;
}

.details-travel-date-copy {
    display: grid;
    gap: 4px;
}

.details-travel-date-label {
    line-height: 1.1;
}

.details-travel-date-value {
    font-size: 13px;
    line-height: 1.15;
}

.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;
    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-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.room-offers-heading-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex: 0 0 14px;
    opacity: 0.9;
}

.room-offers-table td {
    color: #23413d;
}

.room-offers-price {
    white-space: nowrap;
    font-weight: 700;
}

.room-offer-mobile-label {
    display: none;
}

.room-offers-mobile-list {
    display: none;
}

.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;
        padding-right: 0;
    }

    .travel-dates-grid {
        max-width: none;
        justify-content: start;
        transform: none;
    }

    .details-travel-dates-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .details-hero {
        grid-template-columns: 1fr;
    }

    .travel-dates-grid {
        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;
    }

    .room-offers-table {
        min-width: 0;
    }

    .room-offers-table thead th:first-child {
        width: 100%;
    }

    .room-offers-table thead th:nth-child(2),
    .room-offers-table thead th:nth-child(3),
    .room-offers-table thead th:nth-child(4),
    .room-offers-table thead th:nth-child(5) {
        font-size: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .room-offer-main-row td {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .room-offer-main-row .room-offer-room-cell {
        display: block;
        width: 100%;
        padding-right: 0;
        border-bottom: 1px solid rgba(22, 48, 45, 0.1);
    }

    .room-offer-main-row .room-offer-guests-cell,
    .room-offer-main-row .room-offer-board-cell,
    .room-offer-main-row .room-offer-price-cell,
    .room-offer-main-row .room-offer-status-cell {
        display: table-cell;
        vertical-align: top;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .room-offer-mobile-label {
        display: none;
    }
}

@media (max-width: 768px) {
    .details-section {
        padding: 18px 14px;
    }

    .room-offers-table-wrap {
        display: none;
    }

    .room-offers-mobile-list {
        display: grid;
        gap: 14px;
    }

    .room-offers-mobile-card {
        display: grid;
        gap: 14px;
    }

    .room-offers-mobile-room {
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(22, 48, 45, 0.1);
    }

    .room-offers-mobile-room strong {
        color: #23413d;
    }

    .room-offers-mobile-facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 18px;
    }

    .room-offers-mobile-fact {
        display: grid;
        gap: 6px;
        min-width: 0;
    }

    .room-offers-mobile-fact-label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #617a76;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .room-offers-mobile-fact-icon {
        width: 12px;
        height: 12px;
        object-fit: contain;
        flex: 0 0 12px;
        opacity: 0.9;
    }

    .room-offers-mobile-fact-value {
        color: #23413d;
        font-size: 14px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .room-offers-mobile-fact-value strong,
    .room-offers-mobile-fact-value b {
        color: #23413d;
    }

    .details-fact-card {
        padding: 12px 14px;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 1024px) {
    .result-card {
        padding: 16px;
    }

    .hotel-card {
        padding: 14px;
    }

    .hotel-content {
        gap: 18px;
        padding: 0 4px 0;
    }

    .hotel-side {
        gap: 18px;
        padding-top: 0;
    }

    .travel-dates-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        justify-content: start;
        justify-items: start;
        margin-left: 0;
        align-self: flex-start;
        transform: none;
    }

    .travel-date-card {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .travel-date-icon {
        width: 12px;
        height: 12px;
    }

    .travel-date-copy {
        gap: 4px;
    }

    .travel-date-label {
        font-size: 12px;
    }

    .travel-date-value {
        font-size: 14px;
    }

    .hotel-price {
        width: 100%;
        justify-items: end;
    }

  .hotel-location {
    margin-top: 15px;
    margin-bottom: 10px;
  }

    .hotel-main h2 {
        margin-bottom: 14px;
    }

    .hotel-stars {
        margin-bottom: 16px;
    }

    .hotel-inline-actions {
        padding-top: 18px;
    }
}
