/**
 * Grand Puri / ATD premium single-room presentation.
 * Scoped to .atd-room-page to avoid changing other CozyStay pages.
 */

.atd-room-page {
    --atd-green: #214f3f;
    --atd-green-deep: #173f33;
    --atd-green-soft: #2a5d4b;
    --atd-gold: #b89a58;
    --atd-gold-soft: #d8c596;
    --atd-ink: #27362f;
    --atd-muted: #66726b;
    --atd-line: #e7e1d5;
    --atd-paper: #fffefb;
    --atd-cream: #f7f2e8;
    --atd-page: #fbfaf5;
    --atd-shadow: 0 18px 50px rgba(30, 58, 46, 0.08);
    --atd-radius: 18px;

    background: var(--atd-page);
    color: var(--atd-ink);
    font-size: 15px;
    line-height: 1.7;
}

.atd-room-page *,
.atd-room-page *::before,
.atd-room-page *::after {
    box-sizing: border-box;
}

.atd-room-page a {
    color: inherit;
}

/* --------------------------------------------------------------------------
 * Gallery
 * -------------------------------------------------------------------------- */

.atd-room-gallery {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #d9d7d0;
}

.atd-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
    height: clamp(390px, 39vw, 590px);
}

.atd-gallery-item {
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #d6d4ce;
}

.atd-gallery-item:first-child {
    grid-row: 1 / span 2;
}

.atd-gallery-item.is-hidden {
    display: none;
}

.atd-gallery-image,
.atd-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.atd-gallery-item:hover .atd-gallery-image,
.atd-gallery-item:focus-visible .atd-gallery-image {
    transform: scale(1.018);
}

.atd-gallery-count-1 {
    display: block;
    height: clamp(390px, 42vw, 620px);
}

.atd-gallery-count-1 .atd-gallery-item:first-child {
    height: 100%;
}

.atd-gallery-count-2,
.atd-gallery-count-3 {
    grid-template-columns: 2fr 1fr;
}

.atd-gallery-count-2 .atd-gallery-item:nth-child(2) {
    grid-row: 1 / span 2;
}

.atd-gallery-count-3 .atd-gallery-item:nth-child(2) {
    grid-row: 1;
}

.atd-gallery-count-3 .atd-gallery-item:nth-child(3) {
    grid-row: 2;
}

.atd-gallery-count-4 {
    grid-template-columns: 2fr 1fr 1fr;
}

.atd-gallery-count-4 .atd-gallery-item:nth-child(2) {
    grid-row: 1 / span 2;
}

.atd-gallery-count-4 .atd-gallery-item:nth-child(3) {
    grid-row: 1;
}

.atd-gallery-count-4 .atd-gallery-item:nth-child(4) {
    grid-row: 2;
}

.atd-gallery-view-all {
    position: absolute;
    right: clamp(18px, 3.6vw, 58px);
    bottom: clamp(18px, 2.4vw, 36px);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: rgba(14, 22, 18, 0.9);
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.atd-gallery-view-all:hover,
.atd-gallery-view-all:focus-visible {
    background: #0e1713;
}

.atd-gallery-view-icon {
    font-size: 16px;
    line-height: 1;
}

/* --------------------------------------------------------------------------
 * Main layout
 * -------------------------------------------------------------------------- */

.atd-room-main {
    padding: clamp(42px, 5vw, 76px) 0 clamp(76px, 8vw, 120px);
}

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

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

.atd-room-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
}

.atd-room-layout.sidebar-left .atd-room-content {
    grid-column: 2;
}

.atd-room-layout.sidebar-left .atd-room-sidebar {
    grid-column: 1;
    grid-row: 1;
}

.atd-room-content,
.atd-room-article {
    min-width: 0;
}

.atd-room-header {
    padding-bottom: 27px;
    border-bottom: 1px solid var(--atd-line);
}

.atd-room-title {
    margin: 0 0 16px;
    color: var(--atd-green);
    font-family: var(--heading-font, var(--font-heading, "Cormorant Garamond", Georgia, serif));
    font-size: clamp(42px, 4vw, 62px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.atd-room-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #46554e;
    font-size: 13px;
}

.atd-room-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.atd-room-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--atd-gold);
    font-size: 17px;
}

.atd-room-meta sup {
    font-size: 0.68em;
}

.atd-room-meta-shortcode .cs-room-basic-info,
.atd-room-meta-shortcode .cs-room-basic-info ul {
    margin: 0;
    padding: 0;
}

.atd-room-meta-shortcode .cs-room-basic-info ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    list-style: none;
}

.atd-room-meta-shortcode .cs-room-basic-info li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.atd-room-meta-shortcode .csrbi-icon {
    color: var(--atd-gold);
}

.atd-room-highlight {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin-top: 13px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2e3;
    color: var(--atd-green);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.atd-room-highlight > * {
    margin: 0 !important;
}

.atd-room-subtitle {
    margin-top: 14px;
    color: var(--atd-muted);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
 * Section typography and cards
 * -------------------------------------------------------------------------- */

.atd-section {
    margin-top: 42px;
}

.atd-section-kicker {
    margin: 0 0 6px;
    color: var(--atd-gold);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.atd-section-index {
    color: var(--atd-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.atd-section h2,
.atd-availability-title {
    margin: 0;
    color: var(--atd-green);
    font-family: var(--heading-font, var(--font-heading, "Cormorant Garamond", Georgia, serif));
    font-size: clamp(31px, 2.45vw, 42px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.atd-section-heading,
.atd-location-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.atd-card {
    overflow: hidden;
    padding: clamp(28px, 3vw, 40px);
    border: 1px solid var(--atd-line);
    border-radius: var(--atd-radius);
    background: var(--atd-paper);
    box-shadow: 0 12px 35px rgba(33, 79, 63, 0.025);
}

.atd-card-green {
    border-color: transparent;
    background: var(--atd-green);
    color: #edf3ef;
    box-shadow: var(--atd-shadow);
}

.atd-card-green h2 {
    color: #fff;
}

.atd-card-green .atd-section-kicker,
.atd-card-green .atd-section-index {
    color: #d9c68f;
}

.atd-card-cream {
    border-color: #e3d8c5;
    background: var(--atd-cream);
}

/* About */
.atd-room-overview {
    display: grid;
    grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1.35fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
    padding-top: 8px;
}

.atd-section-side-heading {
    position: relative;
    padding-top: 27px;
}

.atd-section-side-heading::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 1px;
    background: var(--atd-gold);
    content: "";
}

.atd-section-side-heading .atd-section-index {
    display: block;
    margin-bottom: 22px;
}

.atd-room-description {
    color: #5d675f;
    font-size: 14px;
    line-height: 1.85;
}

.atd-room-description > :first-child {
    margin-top: 0;
}

.atd-room-description > :last-child {
    margin-bottom: 0;
}

.atd-room-description .more-link,
.atd-room-description button,
.atd-room-description .read-more,
.atd-room-description .show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    min-height: 30px;
    padding: 7px 12px;
    border: 0;
    border-radius: 3px;
    background: #a48627;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

/* Amenities */
.atd-room-amenities {
    margin-top: 58px;
}

.atd-amenities-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 34px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.atd-amenities-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.atd-amenity-icon {
    display: inline-flex;
    flex: 0 0 21px;
    align-items: center;
    justify-content: center;
    width: 21px;
    color: #f1e9d5;
    font-size: 18px;
}

.atd-facility-dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

/* Reviews */
.atd-review-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.atd-review-icon {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5efe2;
    color: var(--atd-gold);
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: 1;
}

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

.atd-review-card {
    padding: 18px;
    border: 1px solid #ebe5db;
    border-radius: 12px;
    background: #fff;
}

.atd-review-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.atd-review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.atd-review-card-header strong,
.atd-review-card-header time {
    display: block;
}

.atd-review-card-header strong {
    color: var(--atd-ink);
    font-size: 13px;
}

.atd-review-card-header time {
    margin-top: 1px;
    color: #8b918d;
    font-size: 10px;
}

.atd-review-stars {
    margin-top: 9px;
    color: var(--atd-gold);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.atd-review-text {
    margin-top: 10px;
    color: #626a66;
    font-size: 12px;
    line-height: 1.7;
}

.atd-review-text p {
    margin: 0;
}

/* Make common third-party review shortcode output blend into the card. */
.atd-review-content .comments-area,
.atd-review-content .comment-list,
.atd-review-content .review-list {
    margin: 0;
    padding: 0;
}

.atd-review-content .comment-list,
.atd-review-content .review-list {
    list-style: none;
}

/* Location */
.atd-room-location {
    padding-bottom: 18px;
}

.atd-room-map {
    margin: 22px -1px -1px;
    overflow: hidden;
    border-radius: 0 0 calc(var(--atd-radius) - 1px) calc(var(--atd-radius) - 1px);
    background: #e6e9e4;
}

.atd-room-map iframe,
.atd-room-map embed,
.atd-room-map object {
    display: block;
    width: 100% !important;
    min-height: 360px;
    border: 0;
}

.atd-room-map img {
    max-width: 100%;
    height: auto;
}

/* Rules */
.atd-rules-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 19px;
    border-bottom: 1px solid #ded2bc;
}

.atd-rules-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--atd-green);
    color: #fff;
}

.atd-rules-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.atd-rules-content {
    padding-top: 20px;
    color: #59615c;
    font-size: 12px;
    line-height: 1.75;
}

.atd-rules-content h3,
.atd-rules-content h4,
.atd-rules-content h5,
.atd-rules-content strong {
    color: var(--atd-ink);
}

.atd-rules-content ul {
    padding-left: 20px;
}

/* --------------------------------------------------------------------------
 * Reservation sidebar preservation
 * --------------------------------------------------------------------------
 * Do not style CozyStay booking internals here. The original
 * single-room-reservation template owns the reservation UI.
 */
.atd-room-sidebar {
    min-width: 0;
}

/* --------------------------------------------------------------------------
 * Availability calendar
 * -------------------------------------------------------------------------- */

.atd-room-availability {
    padding: 30px;
    border: 1px solid #eee8de;
    background: #fff;
}

.atd-availability-title {
    font-size: 25px;
}

.atd-calendar-wrapper {
    position: relative;
    min-height: 330px;
    margin-top: 24px;
    padding: 12px;
    border: 1px solid #e6dfd2;
    border-radius: 12px;
    background: #fff;
}

.atd-calendar-wrapper .hidden-calendar {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.atd-calendar-wrapper .daterangepicker {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.atd-calendar-wrapper .daterangepicker::before,
.atd-calendar-wrapper .daterangepicker::after {
    display: none !important;
}

.atd-calendar-wrapper .daterangepicker .drp-calendar {
    flex: 1 1 50%;
    max-width: none;
    padding: 8px !important;
}

.atd-calendar-wrapper .daterangepicker .calendar-table {
    border: 0;
    background: transparent;
}

.atd-calendar-wrapper .daterangepicker .calendar-table th,
.atd-calendar-wrapper .daterangepicker .calendar-table td {
    min-width: 28px;
    width: 28px;
    height: 28px;
    border-radius: 0;
    color: #525c57;
    font-size: 10px;
    line-height: 28px;
}

.atd-calendar-wrapper .daterangepicker .calendar-table th.month {
    color: #29352f;
    font-size: 11px;
    font-weight: 700;
}

.atd-calendar-wrapper .daterangepicker td.active,
.atd-calendar-wrapper .daterangepicker td.active:hover,
.atd-calendar-wrapper .daterangepicker td.start-date,
.atd-calendar-wrapper .daterangepicker td.end-date {
    background: #9a7d27;
    color: #fff;
}

.atd-calendar-wrapper .daterangepicker td.in-range {
    background: #f2eddf;
}

.atd-calendar-wrapper .daterangepicker td.off,
.atd-calendar-wrapper .daterangepicker td.disabled {
    color: #c8cbc8;
    text-decoration: none;
}

.atd-calendar-wrapper .daterangepicker .drp-buttons {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    padding: 12px 8px 2px;
    border-top: 0;
}

.atd-calendar-wrapper .daterangepicker .drp-selected {
    display: none;
}

.atd-calendar-wrapper .daterangepicker .btn {
    min-height: 28px;
    padding: 6px 13px;
    border: 1px solid #1d2823;
    border-radius: 0;
    background: #fff;
    color: #1d2823;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.atd-calendar-wrapper .daterangepicker .applyBtn {
    background: #1d2823;
    color: #fff;
}

.atd-mobile-booking {
    display: none;
}

/* --------------------------------------------------------------------------
 * Responsive
 * -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .atd-room-layout.has-sidebar {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
        gap: 36px;
    }

    .atd-room-sidebar .cs-room-booking-wrap {
        padding: 26px 24px;
    }

    .atd-room-title {
        font-size: 48px;
    }
}

@media (max-width: 900px) {
    .atd-gallery-grid {
        height: 460px;
    }

    .atd-room-layout.has-sidebar,
    .atd-room-layout.no-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .atd-room-layout.sidebar-left .atd-room-content,
    .atd-room-layout.sidebar-left .atd-room-sidebar,
    .atd-room-content,
    .atd-room-sidebar {
        grid-column: 1;
    }

    .atd-room-layout.sidebar-left .atd-room-sidebar {
        grid-row: auto;
    }

    .atd-room-sidebar {
        position: static;
    }

    .atd-room-sidebar .cs-room-booking-wrap {
        max-width: 620px;
    }
}

@media (max-width: 700px) {
    .atd-room-page {
        font-size: 14px;
    }

    .atd-room-container {
        width: min(100% - 32px, 620px);
    }

    .atd-room-main {
        padding-top: 34px;
    }

    .atd-gallery-grid,
    .atd-gallery-count-2,
    .atd-gallery-count-3,
    .atd-gallery-count-4 {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        height: 330px;
    }

    .atd-gallery-grid .atd-gallery-item:first-child {
        grid-row: 1 / span 2;
    }

    .atd-gallery-grid .atd-gallery-item:nth-child(n+4) {
        display: none;
    }

    .atd-gallery-grid .atd-gallery-item:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .atd-gallery-grid .atd-gallery-item:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .atd-gallery-count-2 .atd-gallery-item:nth-child(2) {
        grid-row: 1 / span 2;
    }

    .atd-gallery-count-1 {
        display: block;
        height: 330px;
    }

    .atd-gallery-view-all {
        right: 14px;
        bottom: 14px;
        padding: 9px 12px;
        font-size: 9px;
    }

    .atd-room-title {
        font-size: 42px;
    }

    .atd-room-overview {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .atd-section-side-heading .atd-section-index {
        margin-bottom: 12px;
    }

    .atd-section h2,
    .atd-availability-title {
        font-size: 32px;
    }

    .atd-card,
    .atd-room-availability {
        padding: 24px 20px;
    }

    .atd-amenities-list,
    .atd-native-reviews,
    .atd-amenities-content .cs-room-basic-info ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .atd-calendar-wrapper {
        overflow-x: auto;
    }

    .atd-calendar-wrapper .daterangepicker {
        min-width: 580px;
    }
}

@media (max-width: 480px) {
    .atd-room-container {
        width: calc(100% - 24px);
    }

    .atd-gallery-grid,
    .atd-gallery-count-1,
    .atd-gallery-count-2,
    .atd-gallery-count-3,
    .atd-gallery-count-4 {
        height: 270px;
    }

    .atd-room-meta {
        gap: 8px 14px;
    }

    .atd-room-title {
        font-size: 38px;
    }

    .atd-section {
        margin-top: 34px;
    }

    .atd-room-amenities {
        margin-top: 44px;
    }

    .atd-room-sidebar .form-field-col-1-2 {
        width: 100%;
    }

    .atd-room-sidebar .cs-room-booking-wrap {
        padding: 24px 18px;
    }

    .atd-room-sidebar .room-booking-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atd-gallery-image,
    .atd-room-sidebar .cs-submit button {
        transition: none;
    }
}


/* Support CozyStay default facilities markup when using the original room gallery/reservation templates. */
.atd-amenities-content .cs-room-basic-info,
.atd-amenities-content .cs-room-basic-info ul {
    margin: 0;
    padding: 0;
}

.atd-amenities-content .cs-room-basic-info ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 34px;
    list-style: none;
    margin-top: 25px;
}

.atd-amenities-content .cs-room-basic-info li {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: #edf3ef;
    font-size: 13px;
}

.atd-amenities-content .cs-room-basic-info .csrbi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    color: #f1e9d5;
    font-size: 18px;
}

.atd-amenities-content .cs-room-basic-info .csrbi-text {
    color: inherit;
}

.atd-review-content > :first-child,
.atd-rules-content > :first-child {
    margin-top: 0;
}

.atd-review-content > :last-child,
.atd-rules-content > :last-child {
    margin-bottom: 0;
}


/* Final two column room layout. Reservation remains controlled by CozyStay. */
.atd-room-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: start;
    gap: 48px;
}

.atd-room-sidebar .sidebar-container {
    margin: 0;
}

@media (max-width: 900px) {
    .atd-room-layout.has-sidebar {
        grid-template-columns: 1fr;
    }
}


/* v1.11.5 layout correction: keep gallery clean and reduce excessive left whitespace */
.atd-room-gallery {
    background: transparent;
}

.atd-room-main {
    padding-top: 38px;
}

.atd-room-container {
    width: min(1280px, calc(100% - 48px));
}

.atd-room-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
    gap: 36px;
}

.atd-room-content {
    width: 100%;
    max-width: none;
}

.atd-room-article {
    width: 100%;
}

.atd-room-header,
.atd-room-overview,
.atd-room-amenities,
.atd-room-reviews,
.atd-room-location,
.atd-room-rules,
.atd-room-availability {
    margin-left: 0;
}

.atd-room-sidebar {
    width: 100%;
}

@media (max-width: 1100px) {
    .atd-room-container {
        width: min(100% - 32px, 960px);
    }
}

@media (max-width: 900px) {
    .atd-room-layout.has-sidebar {
        gap: 30px;
    }
}


/* v1.11.6 precision layout: move villa content slightly left without touching theme */
.atd-room-container {
    width: min(1320px, calc(100% - 32px));
}

.atd-room-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
    gap: 28px;
}

.atd-room-content {
    margin-left: -8px;
}

.atd-room-article {
    width: 100%;
}

/* Strict isolation: do not affect global theme header/footer */
.atd-room-page {
    position: relative;
}

.atd-room-page + footer,
body:not(.single-room) .atd-room-page {
    all: revert;
}

@media (max-width: 900px) {
    .atd-room-content {
        margin-left: 0;
    }
}


/* Grand Puri Core v1.12.0 - Availability calendar UI refinement */
.atd-room-availability {
    width:100%;
    max-width:100%;
    padding:28px 30px;
    background:#fff;
    border:1px solid #eee6d8;
    border-radius:14px;
    overflow:hidden;
}

.atd-calendar-wrapper,
.room-availability-calendar-wrapper.atd-calendar-wrapper {
    width:100%;
    max-width:560px;
    min-height:auto;
    margin-top:24px;
    padding:14px 16px 12px;
    border:1px solid #e8dfd0;
    border-radius:12px;
    overflow:hidden;
}

.atd-calendar-wrapper .daterangepicker {
    position:static!important;
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    box-shadow:none!important;
    border:0!important;
}

.atd-calendar-wrapper .drp-calendar {
    width:50%!important;
    max-width:50%!important;
    padding:8px!important;
}

.atd-calendar-wrapper .calendar-table {
    width:100%!important;
    border:0!important;
}

.atd-calendar-wrapper .calendar-table th.month {
    font-size:15px!important;
    color:#214f3f!important;
    font-weight:600!important;
}

.atd-calendar-wrapper .calendar-table th,
.atd-calendar-wrapper .calendar-table td {
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
    line-height:32px!important;
    padding:0!important;
    font-size:11px!important;
}

.atd-calendar-wrapper .calendar-table td.active,
.atd-calendar-wrapper .calendar-table td.start-date,
.atd-calendar-wrapper .calendar-table td.end-date {
    background:#a48627!important;
}

.atd-calendar-wrapper .drp-buttons {
    display:flex!important;
    justify-content:flex-end!important;
    gap:8px!important;
    width:100%!important;
    padding:12px 0 2px!important;
    border-top:1px solid #eee6d8!important;
}

.atd-calendar-wrapper .drp-buttons .btn {
    height:30px!important;
    padding:7px 18px!important;
    font-size:10px!important;
}

@media(max-width:900px){
    .atd-calendar-wrapper .daterangepicker {
        flex-direction:column!important;
    }
    .atd-calendar-wrapper .drp-calendar {
        width:100%!important;
        max-width:100%!important;
    }
}


/* v1.12.1 fix: restore daterangepicker action buttons */
.atd-calendar-wrapper .daterangepicker {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}

.atd-calendar-wrapper .daterangepicker .drp-calendar {
    flex: 1 1 50% !important;
}

.atd-calendar-wrapper .daterangepicker .drp-buttons {
    display: flex !important;
    flex: 0 0 100% !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

.atd-calendar-wrapper .daterangepicker .cancelBtn,
.atd-calendar-wrapper .daterangepicker .applyBtn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.atd-calendar-wrapper .daterangepicker .applyBtn {
    background: #1d2823 !important;
    color: #fff !important;
}

.atd-calendar-wrapper .daterangepicker .cancelBtn {
    background: #fff !important;
    color: #1d2823 !important;
}


/* Grand Puri Core v1.12.2 Final Availability Layout Fix */
.atd-calendar-wrapper,
.room-availability-calendar-wrapper.atd-calendar-wrapper {
    width: 100%;
    max-width: 560px;
    min-height: auto;
    margin-top: 24px;
    padding: 20px 18px 16px;
    border: 1px solid #e8dfd0;
    border-radius: 12px;
    overflow: visible;
    background: #fff;
    box-sizing: border-box;
}

.atd-calendar-wrapper .daterangepicker,
.room-availability-calendar-wrapper .daterangepicker {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
}

.atd-calendar-wrapper .drp-buttons,
.room-availability-calendar-wrapper .drp-buttons {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
    clear: both;
}

.atd-calendar-wrapper .cancelBtn,
.room-availability-calendar-wrapper .cancelBtn,
.atd-calendar-wrapper .applyBtn,
.room-availability-calendar-wrapper .applyBtn {
    display: inline-block !important;
    visibility: visible !important;
}

.atd-calendar-wrapper .applyBtn {
    background: #1d2823 !important;
    color: #fff !important;
}


/* Grand Puri Core v1.12.3 - Availability final scoped correction */
.room-availability-calendar-wrapper.atd-calendar-wrapper,
.atd-calendar-wrapper {
    width: 100%;
    max-width: 560px;
    min-height: auto;
    margin-top: 24px;
    padding: 14px 16px 12px;
    border: 1px solid #e8dfd0;
    border-radius: 12px;
    overflow: visible !important;
    background: #ffffff;
    box-sizing: border-box;
}

.room-availability-calendar-wrapper.atd-calendar-wrapper .daterangepicker,
.atd-calendar-wrapper .daterangepicker {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    transform: none !important;
}

.atd-calendar-wrapper .daterangepicker .drp-calendar {
    width: 50% !important;
    float: left !important;
    padding: 8px !important;
    box-sizing: border-box;
}

.atd-calendar-wrapper .daterangepicker .calendar-table {
    width: 100% !important;
}

.atd-calendar-wrapper .daterangepicker .drp-buttons {
    clear: both !important;
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
    padding-top: 14px !important;
    visibility: visible !important;
}

.atd-calendar-wrapper .daterangepicker .cancelBtn,
.atd-calendar-wrapper .daterangepicker .applyBtn {
    display: inline-block !important;
    visibility: visible !important;
}


/* Grand Puri Core v1.12.4 Availability wrapper update */
.atd-calendar-wrapper,
.room-availability-calendar-wrapper.atd-calendar-wrapper {
    width: 100%;
    max-width: 670px;
    min-height: auto;
    margin-top: 24px;
    padding: 14px 16px 12px;
    border: 1px solid #e8dfd0;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.atd-calendar-wrapper .daterangepicker {
    width: 100% !important;
    max-width: 100% !important;
}

/* v1.12.7 mobile layout correction: use normal document flow on small screens. */
@media (max-width: 900px) {
    .atd-room-layout,
    .atd-room-layout.has-sidebar,
    .atd-room-layout.no-sidebar {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
    }

    .atd-room-content,
    .atd-room-layout.sidebar-left .atd-room-content {
        width: 100%;
        margin-left: 0 !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .atd-room-sidebar,
    .atd-room-layout.sidebar-left .atd-room-sidebar {
        width: 100%;
        margin-top: 30px;
        grid-column: auto !important;
        grid-row: auto !important;
    }
}
