/* ============================================= */
/* ==       ROOMS PAGE STYLES                 == */
/* ============================================= */

/* MAP SECTION - Hidden (moved to inline) */
.rooms-map-section {
    display: none;
}

.map-title {
    text-align: center;
    color: var(--dark-text);
    font-family: var(--font-family);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.rooms-map {
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* MAP MODAL */
.map-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.map-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-modal-content {
    display: flex;
    flex-direction: column;
    width: 95%;
    max-width: 1400px;
    height: 88vh;
    background: white;
    animation: slideUp 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Map modal header — back + title + close X */
.map-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid #eee;
    background: white;
    flex-shrink: 0;
    gap: 1rem;
}

.map-modal-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-text);
    flex: 1;
    text-align: center;
}

.map-modal-back {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1.5px solid #e0e0e0;
    border-radius: 22px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    transition: all 0.2s;
    white-space: nowrap;
}

.map-modal-back:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.map-modal-close-x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 0.95rem;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
    flex-shrink: 0;
}

.map-modal-close-x:hover {
    background: #ffe5e5;
    color: var(--primary-color);
}

/* Map body: list left + map right */
.map-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.map-modal-left {
    flex: 0 0 360px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f8f8;
    border-right: 1px solid #e8e8e8;
}

.map-modal-right {
    flex: 1;
    position: relative;
}

.map-modal-map {
    width: 100%;
    height: 100%;
}

.map-modal-room-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.map-modal-room-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(225, 40, 40, 0.15);
    transform: translateY(-2px);
}

.map-modal-room-item.active {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(225, 40, 40, 0.2);
}

.map-modal-room-image {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.map-modal-room-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-modal-room-name {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.map-modal-room-location {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.4rem;
}

.map-modal-room-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Floating "Λίστα" pill — mobile only, shown over the map */
.map-show-list-pill {
    display: none; /* shown only on mobile via media query */
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 24px;
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    gap: 0.4rem;
    align-items: center;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
}

.map-show-list-pill:active {
    transform: translateX(-50%) scale(0.96);
}

.rooms-map .leaflet-popup-content {
    font-family: var(--font-family);
}

.rooms-map .leaflet-popup-content strong {
    color: var(--primary-color);
}

/* Price-badge markers (Airbnb-style) */
.map-price-marker {
    background: #e12828;
    color: white;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(225, 40, 40, 0.4);
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.map-price-marker:hover {
    background: #b91c1c;
    transform: scale(1.08);
}

.map-price-marker.selected {
    background: #1a1a2e;
    transform: scale(1.15);
}

/* HERO SECTION */
.rooms-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height);
}

.rooms-hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e12828 0%, #ff6b6b 100%);
    z-index: -2;
}

.rooms-hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.rooms-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.rooms-hero-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.rooms-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: var(--font-family);
}

.rooms-hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* SEARCH SECTION */
.rooms-search {
    background: var(--background-grey);
    padding: 2rem 0;
    position: relative;
    z-index: 10;
    margin: -3rem 0 2rem;
}

/* Date range field */
.date-range-field { flex: 2 1 250px; }

.date-range-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.date-range-wrap input {
    width: 100%;
    padding: 0.75rem 2.8rem 0.75rem 2.4rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.date-range-wrap input:focus,
.date-range-wrap input.active {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(225,40,40,0.1);
}

.date-icon {
    position: absolute;
    left: 0.8rem;
    color: #aaa;
    font-size: 0.9rem;
    pointer-events: none;
}

.date-clear-btn {
    position: absolute;
    right: 0.6rem;
    background: none;
    border: none;
    color: #bbb;
    font-size: 0.85rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}
.date-clear-btn:hover { background: #f0f0f0; color: #e12828; }

#dateErrorMsg {
    color: #c62828;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

/* Flatpickr overrides to match site theme */
.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14) !important;
    border: 1px solid #eee !important;
    font-family: var(--font-family) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.flatpickr-day.inRange {
    background: rgba(225,40,40,0.12) !important;
    border-color: transparent !important;
    box-shadow: -5px 0 0 rgba(225,40,40,0.12), 5px 0 0 rgba(225,40,40,0.12) !important;
}

.flatpickr-day:hover:not(.flatpickr-disabled):not(.selected):not(.startRange):not(.endRange) {
    background: #fef2f2 !important;
    border-color: var(--primary-color) !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month { color: #333 !important; }

.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month input.cur-year:hover { background: #f5f5f5 !important; }

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

.flatpickr-day.today { border-color: var(--primary-color) !important; }
.flatpickr-day.today:hover { background: #fef2f2 !important; }

.calendar-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    padding: 1.5rem;
    margin-top: 0.5rem;
    width: 600px;
}

.calendar-popup.show {
    display: block;
}

.min-nights-msg {
    margin: 0.75rem 1rem 0;
    padding: 0.6rem 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 0.85rem;
    text-align: center;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.calendar-header button:hover {
    background: var(--background-grey);
}

.calendar-month {
    text-align: center;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1rem;
    flex: 1;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.weekday {
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #999;
    padding: 0.5rem;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background: var(--background-grey);
    border-color: var(--primary-color);
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.in-range {
    background: rgba(225, 40, 40, 0.1);
    color: var(--primary-color);
}

.calendar-day.in-range.preview {
    background: rgba(225, 40, 40, 0.05);
    color: var(--primary-color);
    opacity: 0.7;
}

.calendar-day.start-date,
.calendar-day.end-date {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.calendar-actions button {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.calendar-actions .btn-confirm {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-actions .btn-confirm:hover {
    background: #c91818;
}

.calendar-actions .btn-cancel {
    background: white;
    color: var(--dark-text);
}

.calendar-actions .btn-cancel:hover {
    background: var(--background-grey);
}

.search-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.search-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: flex-end;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-family: var(--font-family);
}

.search-field input,
.search-field select {
    padding: 0.75rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: white;
    cursor: pointer;
}

.search-field input[type="date"] {
    font-family: var(--font-family);
    color: #333;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(225, 40, 40, 0.1);
}

/* Guests selector with +/- buttons */
.guests-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem;
    background: white;
    width: 100%;
}

.guest-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: all 0.2s;
}

.guest-btn:hover {
    background: var(--primary-color);
    color: white;
}

.guest-count {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.search-btn {
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* MAIN LAYOUT */
.rooms-main {
    padding: 2rem 0;
}

.rooms-grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--margin-desktop);
    transition: grid-template-columns 0.3s ease;
}

/* When map is open: hide sidebar, list takes left ~45%, map takes right ~55% */
.rooms-grid-layout.show-map {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0;
}

.rooms-grid-layout.show-map .rooms-sidebar {
    display: none;
}

.rooms-grid-layout.show-map .rooms-list-map-container {
    padding: 0 var(--margin-desktop);
}

.rooms-grid-layout.show-map .rooms-map-container-inline {
    width: 52%;
    flex-shrink: 0;
}

.rooms-grid-layout.show-map .rooms-list-container {
    min-width: 0;
}

.rooms-list-map-container {
    display: flex;
    gap: 1.5rem;
}

/* SIDEBAR */
.rooms-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 120px;
}

.rooms-sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-family: var(--font-family);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-title {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
    font-family: var(--font-family);
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-range input[type="range"] {
    cursor: pointer;
    accent-color: var(--primary-color);
}

#priceValue {
    font-weight: 600;
    color: var(--primary-color);
}

.capacity-options,
.amenities-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.capacity-options label,
.amenities-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.capacity-options label:hover,
.amenities-options label:hover {
    color: var(--primary-color);
}

.capacity-options input,
.amenities-options input {
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* ROOMS LIST & MAP */
.rooms-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    min-width: 0;
}

.rooms-map-container-inline {
    position: sticky;
    top: 120px;
    width: 450px;
    height: calc(100vh - 180px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: none;
    transition: all 0.3s ease;
}

.rooms-map-container-inline.show {
    display: block;
}

.rooms-map-inline {
    width: 100%;
    height: 100%;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.list-header h2 {
    color: var(--dark-text);
    font-family: var(--font-family);
    font-size: 1.5rem;
}

.sort-options select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* ======================================
   SKELETON LOADER
   ====================================== */
@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.skeleton-base {
    background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 4px;
}

.room-skeleton {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.skeleton-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(90deg, #ebebeb 25%, #ddd 50%, #ebebeb 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}

.skeleton-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-line {
    height: 0.9rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 4px;
}

.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.h-big { height: 1.3rem; }

/* Results count loading state */
.results-loading {
    color: #aaa;
    font-style: italic;
    font-weight: 400;
    font-size: 1rem;
}

/* ROOM CARD */
.room-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.room-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #e12828 0%, #ff6b6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.room-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.room-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.room-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
    font-family: var(--font-family);
}

.room-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--accent-color);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.room-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex: 1;
}

.room-capacity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.room-capacity i {
    color: var(--primary-color);
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amenity-tag {
    background: var(--background-grey);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #666;
}

.room-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.room-price {
    display: flex;
    flex-direction: column;
}

.room-price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-family);
}

.room-price-label {
    font-size: 0.75rem;
    color: #999;
}

.room-book-btn {
    padding: 0.6rem 1.2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.room-book-btn:hover {
    background: #c91818;
}

.room-book-btn:active {
    transform: scale(0.95);
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    border: none;
    background: none;
}

.modal-close:hover {
    color: var(--primary-color);
}

.booking-flow {
    position: relative;
    min-height: 400px;
}

.booking-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.booking-step.active {
    display: block;
}

.booking-step h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-family);
    font-size: 1.5rem;
}

.booking-details {
    background: var(--background-grey);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
}

.detail-row.total {
    border-bottom: 2px solid var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.detail-row span {
    color: #666;
}

.detail-row strong {
    color: var(--dark-text);
}

.payment-info {
    margin-bottom: 2rem;
}

.payment-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-family);
}

.iban-box {
    background: #f0f0f0;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.iban-box p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.payment-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-message i {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.success-message h2 {
    color: #4caf50;
    margin-bottom: 1rem;
    font-family: var(--font-family);
}

.success-message p {
    margin: 0.8rem 0;
    color: #666;
}

.reservation-time {
    background: var(--accent-color);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-weight: 600;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #c91818;
}

.btn-secondary {
    background: #ddd;
    color: var(--dark-text);
}

.btn-secondary:hover {
    background: #ccc;
}

/* ======================================
   MOBILE ACTION BAR (shown only on mobile)
   ====================================== */
.mobile-action-bar {
    display: none;
}

.mob-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.55rem 0.6rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 22px;
    background: white;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.mob-action-btn:active,
.mob-action-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff5f5;
}

.mob-sort-select {
    flex: 1.3;
    padding: 0.55rem 0.5rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 22px;
    font-size: 0.82rem;
    font-weight: 600;
    background: white;
    color: #333;
    cursor: pointer;
    text-align: center;
    -webkit-appearance: none;
    outline: none;
}

.mob-filter-badge {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 0.15rem;
}

.mob-filter-badge.show {
    display: flex;
}

/* ======================================
   FILTER DRAWER OVERLAY
   ====================================== */
.mob-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 399;
    backdrop-filter: blur(2px);
}

.mob-filter-overlay.show {
    display: block;
}

/* Sidebar mobile close header — hidden on desktop */
.sidebar-mobile-header {
    display: none;
}

/* Apply button — hidden on desktop */
.sidebar-apply-btn {
    display: none;
}

/* Desktop title — shown on desktop, hidden when in drawer */
.filter-title-desktop {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-family: var(--font-family);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* ======================================
   RESPONSIVE — 768px (MOBILE)
   ====================================== */
@media (max-width: 768px) {

    /* --- Hero: hidden on mobile --- */
    .rooms-hero {
        display: none;
    }

    /* --- Search: sticky compact bar --- */
    .rooms-search {
        position: sticky;
        top: var(--header-height, 70px);
        z-index: 100;
        margin: 0;
        padding: 0.5rem 0;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .search-card {
        padding: 0 1rem;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
    }

    .search-inputs {
        display: flex;
        flex-direction: row;
        gap: 0.6rem;
        align-items: center;
    }

    /* Date field takes most space */
    .date-range-field {
        flex: 1 1 0;
        min-width: 0;
    }

    /* Guests field compact */
    .guests-field {
        flex: 0 0 auto;
    }

    /* Hide labels on mobile — inputs speak for themselves */
    .search-field label {
        display: none;
    }

    .date-range-wrap input {
        padding: 0.6rem 2.4rem 0.6rem 2rem;
        font-size: 0.82rem;
        border-radius: 22px;
    }

    .guests-selector {
        gap: 0.2rem;
        padding: 0.4rem 0.5rem;
        border-radius: 22px;
        width: auto;
    }

    .guest-btn {
        padding: 0.3rem 0.55rem;
        font-size: 1rem;
        border-radius: 50%;
    }

    .guest-count {
        font-size: 0.9rem;
        min-width: 1.2rem;
    }

    /* --- Mobile action bar --- */
    .mobile-action-bar {
        display: flex;
        position: sticky;
        top: calc(var(--header-height, 70px) + 50px);
        z-index: 99;
        background: white;
        border-bottom: 1px solid #efefef;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        align-items: center;
    }

    /* --- Sidebar becomes bottom-sheet drawer --- */
    .rooms-grid-layout {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .rooms-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        z-index: 400;
        border-radius: 20px 20px 0 0;
        max-height: 82vh;
        overflow-y: auto;
        transform: translateY(110%);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .rooms-sidebar.mobile-open {
        transform: translateY(0);
    }

    .sidebar-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem 0.75rem;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--dark-text);
    }

    .sidebar-close-btn {
        background: none;
        border: none;
        font-size: 1.3rem;
        cursor: pointer;
        color: #666;
        padding: 0.25rem 0.5rem;
        border-radius: 50%;
        transition: background 0.2s;
    }

    .sidebar-close-btn:hover {
        background: #f0f0f0;
    }

    .filter-section {
        padding: 1rem 1.5rem;
    }

    .filter-title-desktop {
        display: none;
    }

    .sidebar-apply-btn {
        display: block;
        width: 100%;
        padding: 0.85rem;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        margin-top: 1.5rem;
        transition: background 0.2s;
    }

    .sidebar-apply-btn:hover {
        background: #c91818;
    }

    /* --- Room cards: full-width, compact --- */
    .rooms-list-container {
        padding: 0 1rem;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .room-image {
        height: 210px;
    }

    .room-card-content {
        padding: 1rem;
    }

    .room-description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.85rem;
    }

    /* --- Map: open full modal on mobile, hide inline --- */
    .rooms-map-container-inline {
        display: none !important;
    }

    /* Show the floating list pill on mobile */
    .map-show-list-pill {
        display: flex;
    }

    /* --- Desktop list header sort options: hide map/sort buttons (we have the action bar) --- */
    #toggleMapBtn {
        display: none;
    }

    .sort-options select {
        display: none;
    }

    .list-header {
        flex-direction: row;
        align-items: center;
        padding: 0.75rem 0;
    }

    .list-header h2 {
        font-size: 1rem;
        color: #666;
        font-weight: 500;
    }

    /* --- Modal --- */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    /* --- Flatpickr: single month, full width --- */
    .flatpickr-calendar {
        width: calc(100vw - 2rem) !important;
        left: 1rem !important;
        right: auto !important;
        top: auto !important;
    }

    .flatpickr-months,
    .flatpickr-rContainer {
        width: 100% !important;
    }

    .flatpickr-calendar.multiMonth .flatpickr-rContainer + .flatpickr-rContainer {
        display: none !important;
    }

    /* --- Map modal: full screen — map on top, horizontal card list at bottom --- */
    .map-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        flex-direction: column;
    }

    .map-modal-header {
        padding: 0.7rem 1rem;
    }

    .map-back-text {
        display: none; /* just show the arrow icon on mobile */
    }

    .map-modal-body {
        flex-direction: column;
    }

    .map-modal-right {
        flex: 1;
        order: 1;
        min-height: 0;
    }

    /* Horizontal scrolling card strip at bottom of map */
    .map-modal-left {
        order: 2;
        flex: 0 0 auto;
        border-right: none;
        border-top: 1px solid #e8e8e8;
        padding: 0.6rem;
        overflow-x: auto;
        overflow-y: hidden;
        background: white;
    }

    #mapModalRoomsList {
        display: flex;
        gap: 0.75rem;
        padding: 0.2rem 0.4rem;
        width: max-content;
    }

    .map-modal-room-item {
        flex-direction: column;
        width: 160px;
        min-width: 160px;
        border-radius: 10px;
    }

    .map-modal-room-image {
        width: 100%;
        height: 100px;
        border-radius: 8px 8px 0 0;
    }

    .map-modal-room-info {
        padding: 0.5rem;
    }

    .map-modal-room-name {
        font-size: 0.82rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ======================================
   RESPONSIVE — 480px (SMALL PHONES)
   ====================================== */
@media (max-width: 480px) {
    .room-image {
        height: 185px;
    }

    .mob-action-btn,
    .mob-sort-select {
        font-size: 0.78rem;
        padding: 0.5rem 0.4rem;
    }
}
