/* =========================================================
   HOTEL PROFILE
   ========================================================= */

.hotel-profile-cta {
    margin-top: 14px;
}

.hotel-profile-cta .checkout-button {
    height: 42px;
    padding: 0 20px;
    font-size: 13px;
    border-radius: 10px;
    gap: 8px;
}

.hotel-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    padding: 6px 12px;
    border: 1px solid var(--beige-dark);
    border-radius: 999px;
    background: var(--beige-light);
    color: var(--brown-dark);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
}

.hotel-profile-link:hover {
    background: var(--beige);
    color: var(--brown-dark);
}

.hotel-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}


/* =========================================================
   PROFILE SIDEBAR
   ========================================================= */

.profile-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0 18px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 18px;
}

.profile-sidebar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
}

.profile-sidebar-row span {
    color: var(--text-muted);
}

.profile-sidebar-row strong {
    color: var(--text-dark);
    font-weight: 700;
}


/* =========================================================
   BOOKING SUMMARY — NIGHTS ROW
   ========================================================= */

.booking-nights {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin: 14px 0;
    padding: 12px 0;

    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);

    font-size: 12.5px;
}

.booking-nights > span {
    color: var(--text-muted);
}

.booking-nights > strong {
    color: var(--text-dark);
    font-weight: 700;
}

.booking-nights > strong > span {
    color: var(--brown-dark);
    font-weight: 800;
}


/* =========================================================
   BOOKING SUMMARY — CLEAR BUTTON
   ========================================================= */

.booking-clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 100%;
    height: 38px;

    margin-top: 10px;
    padding: 0 14px;

    border: 1px solid #f0cdc6;
    border-radius: 10px;

    background: #fdf2f0;
    color: #a3413a;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.booking-clear-button:hover {
    background: #f7e3e3;
    border-color: #e0a9a0;
    color: #8a3530;
    transform: translateY(-1px);
}

.booking-clear-button:active {
    transform: translateY(0);
}

.booking-clear-button i {
    font-size: 14px;
    line-height: 1;
}


/* =========================================================
   BOOKING SUMMARY — PRICE OVERRIDES
   ========================================================= */

#bookingSummaryCard .sidebar-price {
    border-top: 0;
    margin-top: 6px;
    padding-top: 0;
}

#bookingSummaryCard .sidebar-price strong {
    font-size: 22px;
}


/* =========================================================
   PROFILE — SEARCH SUMMARY / EDITABLE BAR
   ========================================================= */

.profile-search-section {
    padding: 4px 0 14px;
}

.profile-search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 14px 20px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: 0 4px 16px rgba(59, 40, 30, 0.05);
}

.profile-search-bar[hidden] {
    display: none;
}

.profile-search-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.profile-search-summary .summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.profile-search-summary .summary-item > i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--beige-light);
    color: var(--brown);
    font-size: 16px;
}

.profile-search-summary .summary-item > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.profile-search-summary .summary-label {
    color: var(--text-muted);
    font-size: 10px;
}

.profile-search-summary .summary-item strong {
    color: var(--text-dark);
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-search-summary .summary-divider {
    width: 1px;
    height: 34px;
    background: var(--border);
    flex-shrink: 0;
}

.profile-search-edit-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    flex-shrink: 0;

    border: 1px solid var(--beige-dark);
    border-radius: 10px;

    background: var(--beige-light);
    color: var(--brown-dark);

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-search-edit-button:hover {
    background: var(--beige);
    border-color: var(--brown-light);
}

.profile-search-edit-button i {
    font-size: 14px;
    color: var(--brown);
}

.profile-search-edit-button.is-open {
    background: var(--white);
    border-color: var(--brown-light);
    color: var(--brown-dark);
}


/* =========================================================
   SECTION HEADING — WITH INLINE ACTION (edit button)
   ========================================================= */

.section-heading-with-action {
    flex-wrap: wrap;
}

.section-heading-with-action .section-heading-text {
    flex: 1;
    min-width: 0;
}

.section-heading-with-action .profile-search-edit-button {
    margin-inline-start: auto;
    flex-shrink: 0;
}


/* =========================================================
   HOTEL DETAIL — inline calendar wrapper
   ========================================================= */

.hotel-detail-calendar-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
    animation: searchFormIn 0.25s ease-out;
}

.hotel-detail-calendar-wrapper[hidden] {
    display: none;
}

.hotel-detail-calendar-wrapper .calendar-card {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hotel-detail-calendar-wrapper .calendar-card .section-heading {
    display: none;
}


/* =========================================================
   PROFILE — EDITABLE SEARCH FORM
   ========================================================= */

.profile-search-form {
    padding: 20px 22px 22px;
    margin-top: 10px;

    background: var(--white);
    border: 1px solid var(--beige-dark);
    border-radius: 14px;

    box-shadow: 0 4px 16px rgba(59, 40, 30, 0.06);

    animation: searchFormIn 0.22s ease-out;
}

.profile-search-form[hidden] {
    display: none;
}

@keyframes searchFormIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.profile-search-form-header {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);

    color: var(--brown-dark);
    font-size: 14px;
    font-weight: 750;
}

.profile-search-form-header i {
    color: var(--brown-medium);
    font-size: 16px;
}

.profile-search-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
}

.profile-search-form-grid .form-field {
    position: relative;
}

.profile-search-form-grid .form-input {
    width: 100%;
    height: 52px;
    padding: 20px 14px 6px;

    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;

    background: var(--white);
    color: var(--text-dark);

    font-family: inherit;
    font-size: 13px;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-search-form-grid .form-input:focus {
    border-color: var(--brown-medium);
    box-shadow: 0 0 0 3px rgba(107, 73, 55, 0.08);
}

.profile-search-form-grid select.form-input {
    appearance: none;
    -webkit-appearance: none;
    padding: 20px 14px 6px;
    cursor: pointer;

    background-image:
        linear-gradient(45deg, transparent 50%, var(--brown-medium) 50%),
        linear-gradient(135deg, var(--brown-medium) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% + 2px),
        calc(100% - 15px) calc(50% + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.profile-search-form-grid .form-label-static {
    position: absolute;
    top: 8px;
    right: 14px;

    color: var(--brown-medium);
    font-size: 10px;
    font-weight: 600;

    pointer-events: none;
}

.profile-search-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.profile-search-form-actions .checkout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;
    padding: 0 20px;

    border: 0;
    border-radius: 10px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.profile-search-form-actions .checkout-button-primary {
    background: var(--brown-dark);
    color: var(--white);
    box-shadow: 0 5px 14px rgba(59, 40, 30, 0.16);
}

.profile-search-form-actions .checkout-button-primary:hover {
    background: #503529;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(59, 40, 30, 0.24);
}

.profile-search-form-actions .checkout-button-secondary {
    background: var(--white);
    color: var(--brown-dark);
    border: 1.5px solid var(--beige-dark);
}

.profile-search-form-actions .checkout-button-secondary:hover {
    background: var(--beige-light);
    border-color: var(--brown-light);
    transform: translateY(-1px);
}


/* =========================================================
   CALENDAR — LAYOUT
   ========================================================= */

.calendar-card {
    scroll-margin-top: 90px;
}

.calendar-help {
    margin: -8px 0 18px;
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.9;
}

.price-calendar {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 16px 14px;
}

.price-calendar-header {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    margin-bottom: 14px;
}

.price-calendar-title {
    text-align: center;
    color: var(--brown-dark);
    font-size: 15px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.price-calendar-nav {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--brown);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.price-calendar-nav:hover:not(:disabled) {
    background: var(--beige-light);
    border-color: var(--beige-dark);
}

.price-calendar-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.price-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.price-calendar-weekdays span {
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 0;
}

.price-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}


/* =========================================================
   CALENDAR — DAY CELLS
   ========================================================= */

.price-calendar-day {
    position: relative;
    min-height: 62px;
    padding: 8px 4px 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease,
                transform 0.1s ease, box-shadow 0.15s ease;
}

.price-calendar-day:hover:not(:disabled):not(.is-empty):not(.is-checkin):not(.is-checkout) {
    border-color: var(--brown-light);
    background: var(--cream);
    transform: translateY(-1px);
}

.price-calendar-day.is-empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
    pointer-events: none;
}

.price-calendar-day.is-past,
.price-calendar-day.is-unavailable {
    background: #f7f3ee;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.75;
}

.price-calendar-day.is-today:not(.is-checkin):not(.is-checkout) {
    border-color: var(--brown-dark);
    border-width: 1.5px;
}

.price-calendar-day-number {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.price-calendar-day.is-past .price-calendar-day-number,
.price-calendar-day.is-unavailable .price-calendar-day-number {
    color: var(--text-muted);
}

.price-calendar-day-price {
    color: var(--brown-dark);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.price-calendar-day-price small {
    display: block;
    margin-top: 1px;
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 500;
}


/* =========================================================
   CALENDAR — CHECK-IN
   ========================================================= */

.price-calendar-day.is-checkin {
    background: var(--brown-dark);
    border-color: var(--brown-dark);
    border-width: 2px;
    color: #fff;
    box-shadow:
        0 0 0 3px rgba(59, 40, 30, 0.14),
        0 4px 10px rgba(59, 40, 30, 0.18);
    transform: translateY(-1px);
    z-index: 3;
}

.price-calendar-day.is-checkin .price-calendar-day-number,
.price-calendar-day.is-checkin .price-calendar-day-price,
.price-calendar-day.is-checkin .price-calendar-day-price small {
    color: #fff;
}

.price-calendar-day.is-checkin .price-calendar-day-number {
    font-weight: 800;
}

.price-calendar-day.is-checkin::after {
    content: "ورود";
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--brown-dark);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 0 0 2px var(--white);
    white-space: nowrap;
    pointer-events: none;
    z-index: 4;
}


/* =========================================================
   CALENDAR — CHECK-OUT
   ========================================================= */

.price-calendar-day.is-checkout {
    background: var(--brown);
    border-color: var(--brown);
    border-width: 2px;
    color: #fff;
    box-shadow:
        0 0 0 3px rgba(101, 69, 54, 0.14),
        0 4px 10px rgba(101, 69, 54, 0.18);
    transform: translateY(-1px);
    z-index: 3;
}

.price-calendar-day.is-checkout .price-calendar-day-number,
.price-calendar-day.is-checkout .price-calendar-day-price,
.price-calendar-day.is-checkout .price-calendar-day-price small {
    color: #fff;
}

.price-calendar-day.is-checkout .price-calendar-day-number {
    font-weight: 800;
}

.price-calendar-day.is-checkout::after {
    content: "خروج";
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--brown);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 0 0 2px var(--white);
    white-space: nowrap;
    pointer-events: none;
    z-index: 4;
}


/* =========================================================
   CALENDAR — IN-RANGE
   ========================================================= */

.price-calendar-day.is-in-range {
    background: var(--beige-light);
    border-color: var(--beige);
    color: var(--brown-dark);
}

.price-calendar-day.is-in-range .price-calendar-day-number {
    color: var(--brown-dark);
    font-weight: 700;
}

.price-calendar-day.is-in-range .price-calendar-day-price {
    color: var(--brown);
}

.price-calendar-day.is-in-range:hover {
    background: var(--beige);
    border-color: var(--beige-dark);
    transform: translateY(-1px);
}


/* =========================================================
   CALENDAR — RACK HIGHLIGHT
   ========================================================= */

.price-calendar-day.is-rack:not(.is-checkin):not(.is-checkout):not(.is-in-range) {
    border-color: #c99a35;
    background: #fdf6e9;
}

.price-calendar-day-rack-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #c99a35;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(201, 154, 53, 0.3);
    z-index: 5;
    pointer-events: none;
}


/* =========================================================
   CALENDAR — LEGEND + STATUS
   ========================================================= */

.price-calendar-legend {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11px;
    color: var(--text-muted);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.legend-dot-available   { background: var(--white); }
.legend-dot-unavailable { background: #f7f3ee; }
.legend-dot-rack        { background: #fdf6e9; border-color: #c99a35; }

.price-calendar-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--beige-light);
    color: var(--text);
    font-size: 12px;
    text-align: center;
}

.price-calendar-status.is-error {
    background: #fdf2f0;
    color: #a3413a;
}


/* =========================================================
   CALENDAR — ERROR BANNER
   ========================================================= */

.price-calendar-error {
    margin-top: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;

    border: 1px solid #f0cdc6;
    border-radius: 10px;
    background: #fdf2f0;
    color: #a3413a;

    font-size: 12.5px;
    line-height: 1.9;

    animation: calErrorIn 0.25s ease-out;
}

.price-calendar-error[hidden] {
    display: none;
}

.price-calendar-error i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 16px;
    color: #c0392b;
}

.price-calendar-error span {
    flex: 1;
    min-width: 0;
}

@keyframes calErrorIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   REVIEWS — WRITE BLOCK + EDIT
   ========================================================= */

.reviews-card {
    scroll-margin-top: 90px;
}

.review-write-block {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px dashed var(--border);
}

.review-my-card {
    padding: 16px 18px;
    border: 1px solid #c9e6d1;
    border-radius: 12px;
    background: #f2fbf5;
    margin-bottom: 16px;
}

.review-my-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.review-my-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2d6a3f;
    font-size: 12.5px;
    font-weight: 700;
}

.review-my-rating {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--white);
    color: var(--brown-dark);
    font-size: 11px;
    font-weight: 700;
}

.review-my-comment {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 12.5px;
    line-height: 1.9;
}

.review-edit-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--beige-dark);
    border-radius: 8px;
    background: var(--white);
    color: var(--brown-dark);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.review-edit-button:hover {
    background: var(--beige-light);
}


/* =========================================================
   REVIEWS — FORM
   ========================================================= */

.review-form {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--cream);
}

.review-form[hidden] {
    display: none;
}

.review-form-title {
    margin: 0 0 14px;
    color: var(--brown-dark);
    font-size: 15px;
    font-weight: 750;
}

.review-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eaf7ee;
    color: #2d6a3f;
    font-size: 11px;
    font-weight: 700;
}

.review-stars-wrapper {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.review-stars-label {
    color: var(--text);
    font-size: 12.5px;
    font-weight: 700;
}

.review-stars {
    display: inline-flex;
    gap: 4px;
    direction: ltr;
}

.review-star {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d5c2ad;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.12s ease, transform 0.12s ease;
}

.review-star:hover {
    transform: scale(1.1);
}

.review-star.is-active {
    color: #e0a82e;
}

.review-star i {
    line-height: 1;
}

.review-textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: var(--white);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.9;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-textarea:focus {
    border-color: var(--brown-medium);
    box-shadow: 0 0 0 3px rgba(107, 73, 55, 0.08);
}


/* =========================================================
   REVIEWS — FORM ACTIONS
   ========================================================= */

.review-form-actions {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.review-form-actions .checkout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 44px;
    padding: 0 22px;

    border: 0;
    border-radius: 10px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;
    user-select: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.review-form-actions .checkout-button i {
    font-size: 15px;
    line-height: 1;
    transition: transform 0.15s ease;
}

.review-form-actions .checkout-button:focus-visible {
    outline: 2px solid var(--brown-medium);
    outline-offset: 2px;
}

.review-form-actions .checkout-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.review-form-actions .checkout-button-primary {
    background: var(--brown-dark);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(59, 40, 30, 0.16);
}

.review-form-actions .checkout-button-primary:hover:not(:disabled) {
    background: #503529;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(59, 40, 30, 0.24);
}

.review-form-actions .checkout-button-primary:hover:not(:disabled) i {
    transform: translateX(-2px);
}

.review-form-actions .checkout-button-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(59, 40, 30, 0.18);
}

.review-form-actions .checkout-button-secondary {
    background: var(--white);
    color: var(--brown-dark);
    border: 1.5px solid var(--beige-dark);
}

.review-form-actions .checkout-button-secondary:hover:not(:disabled) {
    background: var(--beige-light);
    color: var(--brown-dark);
    border-color: var(--brown-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(59, 40, 30, 0.08);
}

.review-form-actions .checkout-button-secondary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}


/* =========================================================
   REVIEWS — LOGIN CTA + EMPTY + PILL
   ========================================================= */

.review-login-cta {
    padding: 30px 24px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: var(--cream);
    text-align: center;
}

.review-login-cta > i {
    font-size: 32px;
    color: var(--brown-light);
}

.review-login-cta p {
    margin: 12px 0 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.review-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eaf7ee;
    color: #2d6a3f;
    font-size: 10.5px;
    font-weight: 700;
}

.reviews-empty {
    padding: 40px 24px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: var(--cream);
}

.reviews-empty i {
    font-size: 36px;
    color: var(--brown-light);
}

.reviews-empty h3 {
    margin: 14px 0 6px;
    color: var(--brown-dark);
    font-size: 15px;
}

.reviews-empty p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12.5px;
}


/* =========================================================
   REVIEWS — SUMMARY + LIST
   ========================================================= */

.reviews-summary {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.reviews-score-box {
    text-align: center;
    padding: 22px 18px;
    background: var(--cream);
    border-radius: 14px;
}

.reviews-score-value {
    display: block;
    font-size: 46px;
    font-weight: 800;
    color: var(--brown-dark);
    line-height: 1;
    letter-spacing: -1px;
}

.reviews-score-label {
    display: block;
    margin-top: 8px;
    color: var(--brown);
    font-size: 13px;
    font-weight: 700;
}

.reviews-score-count {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.reviews-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-bar {
    display: grid;
    grid-template-columns: 130px 1fr 40px;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.review-bar > span {
    color: var(--text-muted);
    font-weight: 600;
}

.review-bar-track {
    height: 6px;
    background: var(--beige-light);
    border-radius: 3px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: linear-gradient(to left, var(--brown), var(--brown-medium));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.review-bar strong {
    color: var(--text-dark);
    font-weight: 700;
    text-align: left;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-card {
    padding: 18px;
    background: var(--cream);
    border-radius: 12px;
}

.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--beige-light);
    color: var(--brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.review-author strong {
    display: block;
    color: var(--brown-dark);
    font-size: 13px;
    font-weight: 700;
}

.review-author span {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    margin-top: 2px;
}

.review-score {
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--brown-dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.review-comment {
    color: var(--text);
    font-size: 12px;
    line-height: 2;
    margin: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .profile-search-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .profile-search-summary {
        gap: 14px;
    }

    .profile-search-summary .summary-divider {
        display: none;
    }

    .profile-search-edit-button {
        align-self: stretch;
        justify-content: center;
    }

    .profile-search-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {

    .hotel-profile-link {
        font-size: 11px;
        padding: 5px 10px;
    }

    .price-calendar-day {
        min-height: 56px;
        padding: 7px 2px 3px;
    }

    .price-calendar-day-number {
        font-size: 12px;
    }

    .price-calendar-day-price {
        font-size: 9px;
    }

    .review-form {
        padding: 16px;
    }

    .review-star {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .review-bar {
        grid-template-columns: 100px 1fr 35px;
    }
}

@media (max-width: 600px) {

    .section-heading-with-action .profile-search-edit-button {
        margin-inline-start: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 500px) {

    .profile-search-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .profile-search-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-search-form-actions {
        flex-direction: column;
    }

    .profile-search-form-actions .checkout-button {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .price-calendar {
        padding: 14px 10px 12px;
    }

    .price-calendar-day {
        min-height: 50px;
    }

    .price-calendar-day-price {
        font-size: 8px;
    }

    .price-calendar-legend {
        gap: 8px;
        font-size: 10px;
    }

    .review-form-actions {
        gap: 8px;
    }

    .review-form-actions .checkout-button {
        flex: 1 1 auto;
        width: 100%;
    }

    .reviews-score-value {
        font-size: 38px;
    }
}