/* ========================================
   Booking System - SOTA Redesign
   Brand Color: #387153
   ======================================== */

:root {
    --b-primary: #387153;
    --b-primary-dark: #2d5a43;
    --b-primary-light: #f0f7f3;
    --b-day-radius: 20px;
    --b-primary-hover: #2f6348;
    --b-primary-gradient: linear-gradient(135deg, #387153, #2d5a43);
    --b-text: #222222;
    --b-text-secondary: #717171;
    --b-text-light: #999;
    --b-border: #ddd;
    --b-border-light: #ebebeb;
    --b-bg: #f7f7f7;
    --b-white: #fff;
    --b-error: #c13515;
    --b-success: #008a05;
    --b-radius: 16px;
    --b-radius-sm: 12px;
    --b-shadow: 0 2px 16px rgba(0,0,0,0.08);
    --b-shadow-lg: 0 6px 30px rgba(0,0,0,0.12);
    --b-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page */
.booking-page {
    background-color: var(--b-bg);
    min-height: 100vh;
    font-family: 'OpenSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-top: 60px;
}

/* Navbar solid white on booking/contact pages */
body.booking-active .navbar,
body.contact-active .navbar {
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Override global GreatVibes + style.css defaults */
.booking-page h1,
.booking-page h2,
.booking-page h3,
.booking-page h4,
.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page h4 {
    font-family: 'OpenSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    letter-spacing: normal !important;
    color: var(--b-text) !important;
    padding-bottom: 0 !important;
    font-size: inherit !important;
}

.booking-page .row,
.contact-page .row {
    padding: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: inherit !important;
}

.booking-page .booking-section-title,
.booking-page h1.apartment-header-title {
    font-size: 20px !important;
}

.booking-page .apartment-header h1 {
    font-size: 28px !important;
}

.booking-page .price-card-price {
    font-size: 26px !important;
}

.booking-page .confirmation-title {
    font-size: 26px !important;
}

.booking-page .form-group label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--b-text) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    padding-bottom: 0 !important;
}

.booking-container {
    padding-top: 24px;
    padding-bottom: 80px;
    max-width: 1120px;
    margin: 0 auto;
}

/* ─── Photo Gallery ─── */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    border-radius: var(--b-radius);
    overflow: hidden;
    height: 400px;
    margin-bottom: 32px;
    position: relative;
}

.gallery-grid .gallery-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-grid .gallery-item:first-child {
    grid-row: 1 / 3;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-show-all {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: var(--b-white);
    color: var(--b-text);
    border: 1px solid var(--b-text);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    transition: var(--b-transition);
}

.gallery-show-all:hover {
    background: var(--b-text);
    color: var(--b-white);
}

/* Single image fallback */
.gallery-single {
    border-radius: var(--b-radius);
    overflow: hidden;
    height: 400px;
    margin-bottom: 32px;
    position: relative;
}

.gallery-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Modal */
.gallery-modal {
    padding-right: 0 !important;
}

body.gallery-modal-open #galleryModal {
    z-index: 10050;
}

body.gallery-modal-open .modal-backdrop.show {
    z-index: 10040;
    opacity: 0.8;
    backdrop-filter: blur(2px);
}

body.gallery-modal-open #cc-banner,
body.gallery-modal-open #cc-floating-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.gallery-modal .modal-dialog {
    max-width: min(1180px, 94vw);
    margin: 1.2rem auto;
}

.gallery-modal .modal-content {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    overflow: hidden;
    background: #101516;
    box-shadow: 0 24px 76px rgba(0, 0, 0, 0.46);
}

.gallery-modal .modal-header {
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    background: linear-gradient(180deg, rgba(11, 17, 18, 0.98), rgba(11, 17, 18, 0.86));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border: none !important;
}

.gallery-modal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f4f6f5;
}

.gallery-modal-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.92;
}

.gallery-modal-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.gallery-modal .close {
    margin: 0;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    opacity: 1;
    text-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.gallery-modal .close span {
    line-height: 1;
    font-size: 24px;
    transform: translateY(-1px);
}

.gallery-modal .close:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.04);
    color: #ffffff;
}

.gallery-modal .modal-body {
    background: #0b1011;
}

.gallery-modal .carousel-inner {
    height: clamp(360px, 68vh, 720px);
    padding: 10px clamp(14px, 2vw, 22px);
    box-sizing: border-box;
}

.gallery-modal .carousel {
    position: relative;
    z-index: 1;
    top: 0 !important;
}

.gallery-modal .carousel-item {
    position: relative;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    background: radial-gradient(circle at top, rgba(80, 111, 96, 0.25), rgba(7, 12, 12, 0.95) 56%);
}

.gallery-modal .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--gallery-bg);
    background-size: cover;
    background-position: center;
    filter: blur(14px);
    transform: scale(1.08);
    opacity: 0.5;
}

.gallery-modal .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 12, 0.22);
}

.gallery-modal .carousel-item img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: 0;
    object-fit: contain;
    object-position: center;
    transform: none;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
    background: #0f1415;
}

.gallery-modal .carousel-control-prev,
.gallery-modal .carousel-control-next {
    width: auto;
    opacity: 1;
    background: transparent;
    border: 0;
    padding: 0;
}

.gallery-modal .carousel-control-prev {
    left: clamp(8px, 1.5vw, 16px);
}

.gallery-modal .carousel-control-next {
    right: clamp(8px, 1.5vw, 16px);
}

.gallery-modal .carousel-control-prev-icon,
.gallery-modal .carousel-control-next-icon {
    width: 46px;
    height: 46px;
    margin: 0 !important;
    border-radius: 999px;
    background-color: rgba(12, 20, 22, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.38);
    background-size: 52% 52%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(2px);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.gallery-modal .carousel-control-prev:hover .carousel-control-prev-icon,
.gallery-modal .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(56, 113, 83, 0.92);
    border-color: rgba(172, 229, 198, 0.62);
    transform: scale(1.06);
}

.gallery-modal-thumbs {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    padding: 10px 16px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 16px;
    background: linear-gradient(180deg, rgba(8, 12, 13, 0.12), rgba(6, 8, 9, 0.82));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.45) rgba(255, 255, 255, 0.08);
}

.gallery-modal-thumbs::-webkit-scrollbar {
    height: 8px;
}

.gallery-modal-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.gallery-thumb {
    width: 92px;
    height: 64px;
    flex: 0 0 auto;
    position: relative;
    scroll-snap-align: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.78;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.gallery-thumb::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.gallery-thumb.is-active {
    opacity: 1;
    border-color: #7ec6a1;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 0 2px rgba(126, 198, 161, 0.26), 0 10px 18px rgba(0, 0, 0, 0.26);
}

.gallery-thumb.is-active::after {
    opacity: 1;
}

.gallery-thumb:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/* ─── Apartment Header ─── */
.apartment-header {
    margin-bottom: 28px;
}

.apartment-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--b-text);
    font-family: 'Raleway', sans-serif;
    margin-bottom: 8px;
}

.apartment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.apt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--b-bg);
    border: 1px solid var(--b-border-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--b-text-secondary);
    font-weight: 500;
}

.apt-badge.badge-pets {
    background: var(--b-primary-light);
    border-color: var(--b-primary);
    color: var(--b-primary);
}

.apt-badge.badge-price {
    background: var(--b-primary);
    color: var(--b-white);
    font-weight: 600;
    font-size: 14px;
}

/* ─── Card ─── */
.booking-card {
    background: var(--b-white);
    border-radius: var(--b-radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--b-shadow);
    border: 1px solid var(--b-border-light);
    transition: var(--b-transition);
}

.booking-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--b-text);
    margin-bottom: 20px;
    font-family: 'OpenSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: normal;
}

/* ─── Calendar ─── */
#booking-calendar {
    margin-bottom: 20px;
}

/* Force flatpickr to fill full card width */
.booking-page .flatpickr-calendar {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    font-family: 'OpenSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    padding: 0 !important;
}

.booking-page .flatpickr-innerContainer,
.booking-page .flatpickr-rContainer {
    display: block !important;
    width: 100% !important;
}

.booking-page .flatpickr-days {
    width: 100% !important;
}

.booking-page .dayContainer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 2px !important;
}

/* Month header */
.flatpickr-months {
    margin-bottom: 8px;
    width: 100% !important;
}

.flatpickr-months .flatpickr-month {
    height: 48px;
    width: 100% !important;
}

.flatpickr-current-month {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--b-text) !important;
    padding-top: 8px !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 600 !important;
    font-size: 18px !important;
}

/* Navigation arrows */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    padding: 8px 12px !important;
    top: 8px !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    width: 14px !important;
    height: 14px !important;
    fill: var(--b-primary) !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--b-primary-dark) !important;
}

/* Weekday headers */
.booking-page .flatpickr-weekdaycontainer {
    display: flex !important;
    width: 100% !important;
}

.flatpickr-weekdays {
    margin-bottom: 4px;
    width: 100% !important;
}

span.flatpickr-weekday {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--b-text-secondary) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Day cells - square + round */
.flatpickr-day {
    border-radius: 50% !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--b-text) !important;
    width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    margin: 2px auto !important;
    transition: all 0.15s ease !important;
    justify-self: center !important;
}

.flatpickr-day:hover {
    background: var(--b-primary-light) !important;
    border-color: var(--b-primary) !important;
    color: var(--b-primary-dark) !important;
}

/* Today */
.flatpickr-day.today {
    border-color: var(--b-primary) !important;
    background: transparent !important;
    color: var(--b-primary) !important;
    font-weight: 700 !important;
}

.flatpickr-day.today:hover {
    background: var(--b-primary-light) !important;
}

/* Selected single day */
.flatpickr-day.selected {
    background: var(--b-primary) !important;
    border-color: var(--b-primary) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

.flatpickr-day.selected:hover {
    background: var(--b-primary-dark) !important;
    border-color: var(--b-primary-dark) !important;
}

/* ── Range band: connected AirBnB-style stripe ── */

/* All range days stretch to fill grid cell */
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.inRange {
    width: auto !important;
    max-width: none !important;
    justify-self: stretch !important;
    margin: 2px 0 !important;
    border: none !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
}

/* In-range: full light green band */
.flatpickr-day.inRange {
    background: var(--b-primary-light) !important;
    color: var(--b-primary-dark) !important;
    box-shadow: none !important;
}

/* Start: dark circle + band extending right */
.flatpickr-day.startRange {
    background:
        radial-gradient(circle at center, var(--b-primary) var(--b-day-radius), transparent calc(var(--b-day-radius) + 1px)),
        linear-gradient(to right, transparent 50%, var(--b-primary-light) 50%) !important;
    color: #fff !important;
}

/* End: dark circle + band extending left */
.flatpickr-day.endRange {
    background:
        radial-gradient(circle at center, var(--b-primary) var(--b-day-radius), transparent calc(var(--b-day-radius) + 1px)),
        linear-gradient(to left, transparent 50%, var(--b-primary-light) 50%) !important;
    color: #fff !important;
}

/* Same-day start+end: just a circle, no band */
.flatpickr-day.startRange.endRange {
    background: var(--b-primary) !important;
    border-radius: 50% !important;
    width: 44px !important;
    max-width: 44px !important;
    justify-self: center !important;
    margin: 2px auto !important;
    color: #fff !important;
}

/* Hover states for range */
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background:
        radial-gradient(circle at center, var(--b-primary-dark) var(--b-day-radius), transparent calc(var(--b-day-radius) + 1px)),
        linear-gradient(to right, var(--b-primary-light) 0%, var(--b-primary-light) 100%) !important;
}

.flatpickr-day.inRange:hover {
    background: #dceee4 !important;
}

/* Disabled / past days - faded out */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: var(--b-text-light) !important;
    opacity: 0.35 !important;
    background: transparent !important;
    border-color: transparent !important;
    cursor: not-allowed !important;
}

/* Previous/next month days */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: var(--b-border) !important;
    opacity: 0.4 !important;
    background: transparent !important;
    border-color: transparent !important;
}

/* Calendar Message */
.calendar-msg {
    padding: 10px 14px;
    border-radius: var(--b-radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
    animation: calMsgIn 0.3s ease;
}
.calendar-msg--info {
    background: var(--b-primary-light);
    color: var(--b-primary-dark);
    border: 1px solid rgba(56, 113, 83, 0.2);
}
.calendar-msg--warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid rgba(133, 100, 4, 0.2);
}
@keyframes calMsgIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Dates Display */
.booking-dates-display {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--b-border-light);
}

.date-display {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: var(--b-bg);
    border-radius: var(--b-radius-sm);
}

.date-display label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--b-text-light);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.date-display span {
    font-size: 16px;
    font-weight: 600;
    color: var(--b-text);
}

.date-display-arrow {
    color: var(--b-text-light);
    font-size: 18px;
    flex-shrink: 0;
}

/* ─── Guest & Pet Selectors ─── */
.guest-selectors {
    display: flex;
    flex-direction: column;
}

.guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--b-border-light);
}

.guest-row:last-child {
    border-bottom: none;
}

.guest-label-wrap {
    display: flex;
    flex-direction: column;
}

.guest-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--b-text);
}

.guest-sublabel {
    font-size: 13px;
    color: var(--b-text-secondary);
    margin-top: 2px;
}

.guest-counter {
    display: flex;
    align-items: center;
    gap: 16px;
}

.counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--b-primary);
    background: transparent;
    color: var(--b-primary);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--b-transition);
}

.counter-btn:hover:not(:disabled) {
    background: var(--b-primary);
    color: var(--b-white);
    transform: scale(1.1);
}

.counter-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    border-color: var(--b-border);
    color: var(--b-border);
}

.counter-value {
    font-size: 17px;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
    color: var(--b-text);
}

/* ─── Form ─── */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--b-text);
    margin-bottom: 6px;
    letter-spacing: normal;
}

.booking-card .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--b-border);
    border-radius: var(--b-radius-sm);
    font-size: 15px;
    color: var(--b-text);
    transition: var(--b-transition);
    box-sizing: border-box;
    background: var(--b-white);
}

.booking-card .form-control:focus {
    outline: none;
    border-color: var(--b-primary);
    box-shadow: 0 0 0 3px rgba(56, 113, 83, 0.12);
}

textarea.form-control {
    resize: vertical;
}

/* Submit Button */
.btn-booking-submit {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--b-primary-gradient);
    color: var(--b-white);
    border: none;
    border-radius: var(--b-radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--b-transition);
    text-align: center;
    text-decoration: none;
    margin-top: 8px;
    letter-spacing: normal;
}

.btn-booking-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 113, 83, 0.3);
    color: var(--b-white);
    text-decoration: none;
}

.btn-booking-submit:active {
    transform: translateY(0);
}

.btn-booking-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Errors */
.booking-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--b-radius-sm);
    padding: 14px 18px;
    margin-bottom: 20px;
}

.booking-errors ul {
    margin: 0;
    padding-left: 18px;
    color: var(--b-error);
    font-size: 14px;
}

/* ─── Sidebar / Price Card ─── */
.booking-sidebar {
    position: sticky;
    top: 80px;
}

.price-card {
    border: 1px solid var(--b-border-light);
    box-shadow: var(--b-shadow-lg);
}

.price-card-header {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--b-border-light);
    margin-bottom: 16px;
}

.price-card-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--b-text);
}

.price-card-per-night {
    font-size: 14px;
    color: var(--b-text-secondary);
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
    color: var(--b-text);
    transition: var(--b-transition);
}

.price-line.price-fade-in {
    animation: priceFadeIn 0.4s ease;
}

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

.price-total {
    padding-top: 14px;
    margin-top: 8px;
    border-top: 2px solid var(--b-text);
    font-weight: 700;
    font-size: 18px;
}

.price-card-info {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--b-border-light);
    color: var(--b-text-secondary);
    font-size: 13px;
}

.price-card-info i {
    margin-right: 4px;
    color: var(--b-primary);
}

#price-placeholder {
    text-align: center;
    padding: 20px 0;
}

#price-summary {
    transition: var(--b-transition);
}

/* ─── Payment Method Selector ─── */
.payment-options {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--b-border);
    border-radius: var(--b-radius-sm);
    cursor: pointer;
    transition: var(--b-transition);
    position: relative;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option:hover {
    border-color: var(--b-primary);
    background: var(--b-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 113, 83, 0.15);
}

.payment-option.selected {
    border-color: var(--b-primary);
    background: var(--b-primary-light);
}

.payment-option-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.payment-option-content > i {
    font-size: 22px;
    color: var(--b-primary);
    margin-bottom: 4px;
}

.payment-option-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--b-text);
}

.payment-option-desc {
    font-size: 12px;
    color: var(--b-text-secondary);
    margin-top: 2px;
}

.payment-check {
    color: var(--b-primary);
    font-size: 20px;
    opacity: 0;
    transition: var(--b-transition);
}

.payment-option.selected .payment-check {
    opacity: 1;
}

/* Deposit lines in price card */
.price-deposit-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--b-border);
}

.price-line.price-deposit {
    color: var(--b-primary);
    font-weight: 600;
}

.price-line.price-deposit i {
    margin-right: 4px;
}

.price-line.price-remaining {
    color: var(--b-text-secondary);
    font-size: 13px;
}

/* Bank details box on confirmation */
.bank-details-box {
    background: var(--b-primary-light);
    border: 1px solid rgba(56, 113, 83, 0.2);
    border-radius: var(--b-radius-sm);
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.bank-details-box h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--b-text);
    margin-bottom: 12px;
}

.bank-details-box table {
    width: 100%;
}

.bank-details-box td {
    padding: 6px 0;
    font-size: 14px;
}

.bank-details-box td:first-child {
    color: var(--b-text-secondary);
    width: 40%;
    font-weight: 500;
}

.bank-details-box td:last-child {
    font-weight: 600;
    color: var(--b-text);
}

/* Payment cancelled page */
.cancelled-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fef2f2;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cancelled-icon i {
    font-size: 40px;
    color: var(--b-error);
}

/* ─── Confirmation Page ─── */
.confirmation-wrapper {
    max-width: 620px;
    margin: 40px auto 0;
}

.confirmation-card {
    text-align: center;
    padding: 48px 40px;
}

/* Animated Checkmark */
.confirmation-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--b-primary-light);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkmarkPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.confirmation-checkmark i {
    font-size: 40px;
    color: var(--b-primary);
    animation: checkmarkDraw 0.4s ease 0.3s both;
}

@keyframes checkmarkPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes checkmarkDraw {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.confirmation-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--b-text);
    margin-bottom: 12px;
    font-family: 'Raleway', sans-serif;
}

.confirmation-text {
    font-size: 16px;
    color: var(--b-text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

.confirmation-reference {
    background: var(--b-primary-light);
    border-radius: var(--b-radius-sm);
    padding: 20px;
    margin-bottom: 28px;
}

.confirmation-reference label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--b-text-secondary);
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 1px;
}

.reference-number {
    font-size: 26px;
    font-weight: 700;
    color: var(--b-primary);
    letter-spacing: 2px;
}

.confirmation-details {
    text-align: left;
    margin-bottom: 28px;
}

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

.confirmation-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--b-border-light);
    font-size: 15px;
}

.confirmation-table td:first-child {
    color: var(--b-text-secondary);
    width: 40%;
}

.confirmation-table .confirmation-total td {
    font-weight: 700;
    font-size: 17px;
    color: var(--b-text);
    border-top: 2px solid var(--b-text);
    border-bottom: none;
}

/* Next Steps */
.next-steps {
    background: var(--b-bg);
    border-radius: var(--b-radius-sm);
    padding: 20px;
    margin-bottom: 28px;
    text-align: left;
}

.next-steps h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--b-text);
    margin-bottom: 8px;
    font-family: 'OpenSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.next-steps p {
    color: var(--b-text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
    .booking-sidebar {
        position: static;
        margin-top: 0;
    }

    .gallery-grid {
        height: 300px;
    }

    .apartment-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .booking-page {
        padding-top: 50px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 100px;
        height: auto;
    }

    .gallery-grid .gallery-item:first-child {
        grid-column: 1 / 3;
    }

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

    .gallery-modal .modal-dialog {
        max-width: 100vw;
        margin: 0;
        min-height: 100vh;
    }

    .gallery-modal .modal-content {
        min-height: 100vh;
        border-radius: 0;
    }

    .gallery-modal .modal-header {
        padding: 12px 14px 8px;
    }

    .gallery-modal-title {
        font-size: 14px;
    }

    .gallery-modal-counter {
        font-size: 12px;
        min-width: 56px;
    }

    .gallery-modal .carousel-item,
    .gallery-modal .carousel-item img {
        min-height: 0;
    }

    .gallery-modal .carousel-inner {
        height: 44vh;
        aspect-ratio: auto;
        padding: 8px 10px;
    }

    .gallery-modal .carousel-item img {
        height: 100%;
        border-radius: 10px;
        transform: none;
        object-fit: cover;
    }

    .gallery-modal .carousel-control-prev-icon,
    .gallery-modal .carousel-control-next-icon {
        width: 38px;
        height: 38px;
    }

    .gallery-modal-thumbs {
        gap: 8px;
        padding: 9px 12px 12px;
    }

    .gallery-thumb {
        width: 72px;
        height: 52px;
        border-radius: 10px;
    }

    .apartment-header h1 {
        font-size: 22px;
    }

    .booking-card {
        padding: 16px;
        border-radius: var(--b-radius-sm);
    }

    /* Prevent calendar overflow on mobile */
    .booking-page .flatpickr-calendar {
        overflow: hidden !important;
    }

    :root {
        --b-day-radius: 17px;
    }

    .flatpickr-day {
        width: 38px !important;
        max-width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        font-size: 14px !important;
    }

    .flatpickr-day.startRange.endRange {
        width: 38px !important;
        max-width: 38px !important;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .payment-options {
        flex-direction: column;
    }

    .booking-dates-display {
        flex-wrap: wrap;
        gap: 8px;
    }

    .date-display-arrow {
        display: none;
    }

    .date-display {
        min-width: calc(50% - 4px);
    }

    .confirmation-wrapper {
        margin-top: 20px;
    }

    .confirmation-card {
        padding: 28px 20px;
    }

    /* Mobile fixed bottom price bar */
    .mobile-price-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--b-white);
        padding: 12px 16px;
        border-top: 1px solid var(--b-border);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        z-index: 100;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-price-bar .mobile-price-text {
        font-size: 16px;
        font-weight: 700;
    }

    .mobile-price-bar .mobile-price-text small {
        font-weight: 400;
        color: var(--b-text-secondary);
        display: block;
        font-size: 12px;
    }

    .mobile-price-bar .btn-mobile-book {
        background: var(--b-primary-gradient);
        color: var(--b-white);
        border: none;
        padding: 12px 24px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 14px;
        text-decoration: none;
    }

    .booking-container {
        padding-bottom: 100px;
    }
}

@media (min-width: 768px) {
    .mobile-price-bar {
        display: none !important;
    }
}

/* ─── Trust Badges ─── */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--b-border);
    flex-wrap: wrap;
}
.trust-badge {
    font-size: 12px;
    color: var(--b-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.trust-badge i {
    color: var(--b-primary);
    font-size: 14px;
}

/* ─── Booking Reviews ─── */
.booking-reviews-card {
    margin-top: 16px;
}
.booking-reviews-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.booking-reviews-stars {
    color: #fbc634;
    font-size: 14px;
}
.booking-reviews-stars i {
    margin-right: 1px;
}
.booking-reviews-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--b-text);
}
.booking-review-item {
    padding: 12px 0;
    border-top: 1px solid var(--b-border-light, #f0f0f0);
}
.booking-review-item:first-of-type {
    border-top: none;
    padding-top: 0;
}
.booking-review-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--b-text-secondary);
    margin: 0 0 4px;
    font-style: italic;
}
.booking-review-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--b-text);
}

/* ─── Booking Progress Indicator ─── */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 24px 0;
    padding: 0 20px;
}
.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.progress-step.active {
    opacity: 1;
}
.progress-step.completed {
    opacity: 1;
}
.progress-step.completed .progress-number {
    background-color: #387153;
    color: #fff;
}
.progress-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #387153;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #387153;
    flex-shrink: 0;
}
.progress-step.active .progress-number {
    background-color: #387153;
    color: #fff;
}
.progress-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--b-text);
    white-space: nowrap;
}
.progress-line {
    flex: 1;
    height: 2px;
    background: #ddd;
    min-width: 30px;
    max-width: 80px;
    margin: 0 8px;
}
@media (max-width: 767px) {
    .progress-label { display: none; }
    .booking-progress { gap: 0; margin: 16px 0; }
    .progress-number { width: 28px; height: 28px; font-size: 12px; }
}
