/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --secondary-light: #fbbf24;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    font-size: 15px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* Prevent images from displaying at full/natural size – constrain width and height */
.main-content img {
    max-width: 100%;
    vertical-align: middle;
}
.main-content img[width][height] {
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    box-sizing: border-box;
}

/* Header */
.header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header .container,
.header-container {
    max-width: 1600px;
    width: 100%;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.header-content {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: var(--spacing-md) 0;
    min-height: 3.5rem;
    min-width: min-content;
    width: 100%;
    box-sizing: border-box;
}

.logo h1 {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo {
    flex-shrink: 0;
    min-width: 0;
}
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.logo-img {
    height: 2.5rem;
    min-width: 90px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    vertical-align: middle;
}

.nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    min-width: min-content;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-highlight {
    color: var(--primary-color);
    font-weight: 700;
    background: rgba(37, 99, 235, 0.1);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
}
.nav-link-highlight::after {
    display: none;
}
.nav-link-highlight:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Main content area */
.main-content {
    min-height: 50vh;
    padding-bottom: 1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: #0f172a;
    color: #fff;
    padding: 3.5rem 0 4rem;
    margin-bottom: 0;
    overflow: visible; /* allow guests dropdown to extend below */
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

.hero-section-with-bg {
    background-color: #0f172a;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.22) 100%);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
    box-sizing: border-box;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    min-width: 0;
}

.hero-section > .container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
}

.hero-title,
.hero-content h1,
.hero-content h4,
.hero-content .hero-title {
    font-size: 2.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle,
.hero-content p,
.hero-content .hero-subtitle {
    font-size: 1.0625rem;
    margin: 0 0 2.25rem 0;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .hero-title, .hero-content h1, .hero-content h4, .hero-content .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle, .hero-content p, .hero-content .hero-subtitle {
        margin-bottom: 2.5rem;
        font-size: 1.125rem;
    }
}

/* Search Form – single bar, professional */
.search-form {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    max-width: 1100px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    overflow: visible; /* allow guests dropdown to show */
    box-sizing: border-box;
}

/* Professional search form variant */
.search-form-pro {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
}

.search-form-wrapper {
    padding: 0;
}

.search-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr minmax(260px, 1.35fr) auto;
    gap: 0;
    align-items: stretch;
    min-height: 60px;
}

@media (min-width: 1201px) {
    .search-form {
        max-width: 1280px;
    }
    .search-form-pro {
        min-height: 64px;
    }
    .search-form-grid {
        grid-template-columns: 2.2fr 1.1fr 1.1fr minmax(280px, 1.4fr) auto;
        min-height: 64px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.search-form .form-group {
    gap: 0;
    position: relative;
    border-right: 1px solid #e2e8f0;
    min-height: 60px;
    justify-content: center;
    overflow: visible;
}

.search-form-pro .form-group {
    border-right-color: #eef2f6;
    min-height: 60px;
}

@media (min-width: 1201px) {
    .search-form-pro .form-group {
        min-height: 64px;
    }
}

.search-form .form-group:last-of-type {
    border-right: none;
}

.search-form .form-group:has(.btn-search) {
    border-right: none;
    min-height: 60px;
}

.search-form-pro .form-group:has(.btn-search) {
    padding: 0.5rem;
    min-height: 60px;
}

@media (min-width: 1201px) {
    .search-form-pro .form-group:has(.btn-search) {
        min-height: 64px;
    }
}

.search-form .form-group .btn-search {
    flex: 1;
}

.search-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    margin: 0;
    padding: 0.4rem 1.25rem 0 1.25rem;
    color: #64748b;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.search-form-pro .form-group label {
    color: #64748b;
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.search-form .form-group label svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.search-form .form-group .icon {
    width: 0.875rem;
    height: 0.875rem;
    stroke-width: 2.5;
}

.search-form .form-group input[type="text"],
.search-form .form-group input[type="date"] {
    flex: 1;
    padding: 0.2rem 1.25rem 0.65rem 1.25rem;
    border: none;
    border-radius: 0;
    font-size: 0.9375rem;
    transition: background 0.2s, color 0.2s;
    background: transparent;
    font-weight: 500;
    color: #0f172a;
    min-height: 2rem;
}

.search-form-pro .form-group input[type="text"],
.search-form-pro .form-group input[type="date"] {
    font-size: 0.9375rem;
    font-weight: 500;
}

.search-form .form-group input::placeholder {
    color: #94a3b8;
}

.search-form-pro .form-group input::placeholder {
    color: #94a3b8;
}

.search-form .form-group input:focus {
    outline: none;
    background: #f8fafc;
}

.search-form .form-group input:hover {
    background: #f8fafc;
}

.search-form .form-group .guests-selector input[readonly] {
    padding: 0.25rem 1.25rem 0.75rem 1.25rem;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0f172a;
}

/* Guests column: ensure "Rooms" and full text are visible (avoid "Roo" cutoff) */
.search-form .form-group.form-group-guests {
    min-width: 260px;
}

.guests-selector {
    position: relative;
    overflow: visible;
}

.guests-trigger {
    cursor: pointer;
    min-height: 2rem;
    display: block;
    width: 100%;
    min-width: 0;
}

.guests-trigger input[readonly] {
    pointer-events: none;
    cursor: pointer;
    width: 100%;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
}

.guests-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background: #fff;
    color: #000;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.35rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 9999;
}

.guests-dropdown.show {
    display: block !important;
    pointer-events: auto;
}

.guests-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: #000;
}
.guests-option label {
    color: #000;
}

.guests-option:last-child {
    border-bottom: none;
}

.guests-child-ages {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.child-ages-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.child-age-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
}

.child-age-row label {
    font-size: 0.8125rem;
    color: #000;
    margin: 0;
    flex-shrink: 0;
}

.child-age-row select {
    padding: 0.35rem 0.5rem;
    font-size: 0.8125rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-width: 5rem;
    background: #fff;
    color: #0f172a;
}

.counter {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.counter button,
.counter .guest-btn {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
    color: #000;
    pointer-events: auto;
}

.counter button:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.counter span {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
    color: #000;
}

.btn-done {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-done:hover {
    background: var(--primary-dark);
}

.search-form .form-group .btn-search {
    width: 100%;
    height: 100%;
    min-height: 56px;
    padding: 0 1.5rem;
    margin: 0;
    border: none;
    border-radius: 0;
    background: #2563eb;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.15s;
}

.search-form .form-group .btn-search:hover {
    background: #1d4ed8;
}

.search-form .form-group .btn-search:active {
    transform: scale(0.98);
}

.search-form .form-group .btn-search svg {
    width: 1.25rem;
    height: 1.25rem;
}

.search-form .form-group .btn-search:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Professional search button */
.btn-search-pro {
    min-height: 52px;
    border-radius: 10px;
    margin: 0.5rem;
    padding: 0 1.75rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-search-pro:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

@media (min-width: 1201px) {
    .btn-search-pro {
        min-height: 56px;
        margin: 0.5rem;
    }
}

.search-loader {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
}

.spinner {
    width: 100%;
    height: 100%;
}

.spinner-circle {
    stroke: currentColor;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: spinner-dash 1.5s ease-in-out infinite, spinner-rotate 2s linear infinite;
    transform-origin: center;
}

@keyframes spinner-dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

@keyframes spinner-rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Popular Destinations - Top Cities (40% larger cards) */
.cities-section {
    padding: 4.9rem 0 4.2rem;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

.cities-section-title {
    font-size: 2.45rem;
    font-weight: 400;
    color: #0f172a;
    margin: 0 0 0.7rem 0;
    letter-spacing: -0.02em;
}

.cities-section-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: #64748b;
    margin: 0 0 2.8rem 0;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.7rem;
}

@media (min-width: 640px) {
    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(101px, 1fr));
        gap: 0.84rem;
    }
}

@media (min-width: 1024px) {
    .cities-grid {
        grid-template-columns: repeat(15, 1fr);
        gap: 0.875rem;
    }
}

.city-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.city-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.city-card-image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin: 6px;
}

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

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

.city-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    pointer-events: none;
}

.city-card-name {
    display: block;
    padding: 0.42rem 0.5rem;
    font-size: 0.91rem;
    font-weight: 400;
    color: #0f172a;
}

/* Features Section */
.features-section {
    padding: 2.5rem 0;
    background: var(--bg-primary);
}

/* Professional Features Section */
.features-section-pro {
    padding: 3.5rem 0 4rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.features-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2rem 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.features-grid-pro {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .features-grid-pro {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid-pro {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
}

.feature-card-pro {
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.feature-card-pro:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card-pro:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 14px;
    color: var(--primary-color);
}

.feature-card-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.feature-card-pro h3 {
    font-size: 1.0625rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.875rem;
    margin: 0;
    letter-spacing: -0.01em;
}

.feature-card-pro p {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

/* Guest reviews section (bottom of home) */
.reviews-section {
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 30%);
    border-top: 1px solid #fde68a;
}

.reviews-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reviews-title-icon {
    color: #f59e0b;
    font-size: 1.35rem;
}

.reviews-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1.75rem;
}

/* 5-star display: rating 1–10 mapped to fill width (10% per point, so 5 = 50% = 2.5 stars) */
.reviews-stars-badge,
.review-stars {
    position: relative;
    display: inline-flex;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    line-height: 1;
}

.review-stars-outline,
.reviews-stars-outline {
    color: #e2e8f0;
}

.review-stars-fill::before,
.reviews-stars-fill::before {
    content: "★★★★★";
}

.reviews-stars-badge {
    font-size: 1.5rem;
    letter-spacing: 0.12em;
}

/* Rating scale is 1–5: 20% width per point so 5 stars = 100% */
.review-stars-fill,
.reviews-stars-fill {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    overflow: hidden;
    width: calc(var(--rating, 0) * 20%);
    color: #f59e0b;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.reviews-stars-fill {
    font-size: 1.5rem;
    letter-spacing: 0.12em;
}

.reviews-average {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
}

.reviews-average-label {
    font-size: 0.9375rem;
    color: #64748b;
}

.reviews-total {
    font-size: 0.9375rem;
    color: #64748b;
}

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

.review-card {
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
    border-color: #fcd34d;
}

.review-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}

.review-stars {
    font-size: 1rem;
}

.review-rate-num {
    font-weight: 700;
    font-size: 0.8125rem;
    color: #b45309;
    background: #fef3c7;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.review-rate-scale {
    font-weight: 500;
    color: #92400e;
    font-size: 0.75rem;
}

.review-user {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.9375rem;
}

.review-details {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 0.5rem 0;
}

.review-date {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}

.reviews-empty {
    font-size: 0.9375rem;
    color: #64748b;
    font-style: italic;
    margin: 0;
    grid-column: 1 / -1;
}

/* Results Page */
.results-page {
    padding: 1.5rem 1rem;
    margin-top: 0;
}

.search-bar-sticky {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.search-form-inline-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.search-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.search-value {
    font-weight: 600;
    color: var(--text-primary);
}

.btn-modify-search {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: background 0.2s;
}

.btn-modify-search:hover {
    background: var(--primary-dark);
}

/* Results page – clean layout, optimized space */
.results-page {
    padding: 1rem 0 1.5rem;
    background: #f8fafc;
    overflow-x: hidden;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

.results-page .container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
    box-sizing: border-box;
}

.results-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
    align-items: start;
}

/* Filters Sidebar – card style, compact */
.filters-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    height: fit-content;
    position: sticky;
    top: 0.75rem;
    border: 1px solid #e2e8f0;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.filters-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.btn-close-filters {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #64748b;
}

.filter-section {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #334155;
    letter-spacing: -0.01em;
}

/* Price Range Filter */
.price-range-filter .filter-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
}

.price-range-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* One row: Min [₹ input] to Max [₹ input] [Apply] */
.price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-input-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 0;
    min-width: 72px;
}

.price-input-wrap {
    display: flex;
    align-items: center;
    min-width: 72px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-height: 40px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.price-input-wrap:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: #fff;
}

.price-symbol {
    padding: 0 0.5rem 0 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    flex-shrink: 0;
}

.price-input-wrap input {
    flex: 1;
    min-width: 3rem;
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 0;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    box-sizing: border-box;
}

.price-input-wrap input::placeholder {
    color: #94a3b8;
}

.price-input-wrap input:focus {
    outline: none;
}

/* Visible "to" between Min and Max */
.price-divider {
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin: 0 0.15rem;
    line-height: 1;
}

.btn-apply-price {
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    min-height: 40px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-apply-price:hover {
    background: #1d4ed8;
}

.price-quick-row {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid #e2e8f0;
}

.price-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price-quick-chips .chip,
.btn-quick-range {
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.price-quick-chips .chip:hover,
.btn-quick-range:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
}

/* Legacy price-inputs (if used elsewhere) */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.price-inputs span {
    flex-shrink: 0;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.price-inputs input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-apply-filter {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-apply-filter:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.star-rating-filter,
.amenities-filter,
.viewpoint-filter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.star-option,
.amenity-option,
.viewpoint-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.star-option input,
.amenity-option input,
.viewpoint-option input {
    cursor: pointer;
}

.stars {
    color: var(--secondary-color);
}

.btn-clear-filters {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-filters:hover {
    background: var(--border-color);
}

.no-filters {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Results Main */
.results-main {
    min-width: 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.results-info h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.results-info p {
    font-size: 0.875rem;
    color: #64748b;
}

.results-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-toggle-filters {
    display: none;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
}

.btn-toggle-filters svg {
    width: 1.125rem;
    height: 1.125rem;
}

.sort-select {
    display: inline-block;
    min-width: 160px;
    padding: 0.5rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    position: relative;
    z-index: 10;
    background: #fff;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    color: #334155;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sort-select:hover {
    border-color: #cbd5e1;
}

.sort-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Hotels List – compact gap */
.hotels-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.load-more-sentinel {
    height: 1px;
    visibility: hidden;
    pointer-events: none;
}

.hotel-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
    transition: box-shadow 0.2s, border-color 0.2s;
    border: 1px solid #e2e8f0;
    margin-bottom: 0;
    min-height: 180px;
    max-width: 100%;
}

.hotel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-light);
}

.hotel-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-height: 200px;
    overflow: hidden;
    background: transparent;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    display: grid;
    grid-template-columns: 1fr 44px;
    grid-template-rows: 1fr 38px;
    gap: 0.3rem;
    padding: 0.3rem;
}

.hotel-image-main {
    grid-column: 1;
    grid-row: 1 / 3;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hotel-image-main:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.hotel-image-main img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.hotel-image-main:hover img {
    transform: scale(1.05);
}

.hotel-image-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    grid-column: 2;
    grid-row: 1 / 3;
    height: 100%;
    justify-content: flex-start;
}

.hotel-image-thumbnail {
    position: relative;
    width: 100%;
    height: calc((100% - 0.7rem) / 3);
    min-height: 41px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: transparent;
}

.hotel-image-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.hotel-image-thumbnail img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
}

.hotel-image-thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 0.4rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.hotel-image-thumbnail:hover .hotel-image-thumbnail-overlay {
    opacity: 1;
}

.hotel-image-bottom-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hotel-image-bottom-thumbnail:hover::after {
    opacity: 1;
}

.hotel-image-bottom-thumbnails {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    gap: 0.35rem;
    margin-top: 0.35rem;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    padding-bottom: 0.17rem;
    min-height: 41px;
}

.hotel-image-bottom-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.hotel-image-bottom-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.hotel-image-bottom-thumbnails::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.hotel-image-bottom-thumbnail {
    position: relative;
    width: 41px;
    height: 41px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: transparent;
}

.hotel-image-bottom-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.hotel-image-bottom-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.hotel-image-bottom-thumbnail img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
}

.hotel-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
}

.rooms-left-badge {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    left: auto;
    background: #1e293b;
    color: #fff;
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.2;
    max-width: calc(100% - 1rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rooms-left-count {
    font-size: 1.1em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rooms-left-label {
    font-weight: 600;
    font-size: 0.85em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Book page: rooms left badge in header */
.booking-rooms-left.rooms-left-badge {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 0.5rem;
    display: inline-flex;
}

.hotel-content {
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 180px;
    height: 100%;
    overflow: visible;
    width: 100%;
    min-width: 0;
}

.hotel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.hotel-info {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.hotel-name {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hotel-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.icon-small {
    width: 1rem;
    height: 1rem;
}

.hotel-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-score {
    font-weight: 700;
    color: var(--success-color);
}

.rating-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.hotel-price {
    text-align: right;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.currency {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.amount {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.price-original {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Price block: compare boxes + footer */
.price-compare-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.45rem 0.6rem;
    border-radius: 0.375rem;
    min-width: 0;
}

.price-box-original {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.price-box-deal {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(30, 64, 175, 0.25);
}

.price-box-line {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.price-box-currency {
    font-size: 0.8rem;
    font-weight: 600;
}

.price-box-amount {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.price-box-amount-strike {
    color: #b91c1c;
    text-decoration: line-through;
}

.price-box-amount-deal {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.25rem;
}

.price-box-period {
    font-size: 0.75rem;
    font-weight: 500;
}

.price-box-original .price-box-currency,
.price-box-original .price-box-period {
    color: #b91c1c;
}

.price-box-deal .price-box-currency,
.price-box-deal .price-box-period {
    color: var(--primary-color);
    font-weight: 800;
}

.price-box-badge {
    margin-top: 0.3rem;
    background: var(--primary-color);
    color: white;
    padding: 0.22rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.price-box-arrow {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
    opacity: 0.9;
}

.price-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.price-footer .price-total {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-footer .price-nights {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.amount-crossed {
    font-size: 1rem;
    font-weight: 600;
    text-decoration: line-through;
    color: var(--text-secondary);
    opacity: 0.7;
}

.price-discounted {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.discount-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.period {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.price-total {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.125rem;
}

.price-nights {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.hotel-details {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.results-max-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-style: italic;
}

.available-rooms {
    margin-bottom: 0;
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    display: inline-block;
}

.available-rooms-highlight {
    color: #047857;
    font-weight: 600;
}

.available-rooms-highlight strong {
    color: #065f46;
}

.hotel-distances {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0;
    padding: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.room-types {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.25rem;
}

.room-type {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    margin-bottom: 0;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
    gap: 0.75rem;
}

.room-type:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.room-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.room-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.room-price {
    color: var(--primary-color);
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.85rem;
}

.room-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
}

.room-price-original {
    font-size: 0.7rem;
}

.room-price-crossed {
    text-decoration: line-through;
    color: var(--text-secondary);
    opacity: 0.7;
    font-size: 0.75rem;
}

.room-price-discounted {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.room-discount-badge {
    background: var(--success-color);
    color: white;
    padding: 0.15rem 0.3rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
}

.cancellation-info {
    margin-top: 0.125rem;
}

.cancellation-badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.cancellation-badge.free {
    background: #d1fae5;
    color: #065f46;
}

.hotel-policies-section {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.policy-item {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.policy-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.payment-info-section {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border-light);
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.payment-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #dbeafe;
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    width: fit-content;
}

.payment-due {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

/* Hotel actions: horizontal – Part 1: Places nearby, Part 2: Check Full details */
.hotel-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.625rem;
    margin-top: 0;
    padding-top: 0;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10;
}

.hotel-actions-part {
    flex: 1 1 0;
    min-width: 0;
}

.hotel-actions-part-places {
    min-height: 0;
}

.hotel-actions-part-places:empty {
    display: none;
}

.hotel-actions-part-cta {
    flex: 1 1 0;
    min-width: 140px;
}

/* Part 1: Places nearby – button shape, same width & alignment as Check Full details */
.btn-places-nearby {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    min-height: 46px;
    box-sizing: border-box;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1e40af;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1.5px solid #93c5fd;
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-places-nearby:hover {
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
    border-color: #60a5fa;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.btn-places-nearby:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-places-nearby:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.4);
}

.btn-places-nearby-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.btn-places-nearby-text {
    font-weight: 600;
}

.btn-places-nearby-city {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 0.2rem;
}

.btn-places-nearby:hover .btn-places-nearby-city {
    color: #475569;
}

/* Part 2: Check Full details – same width as Part 1 */
.hotel-actions-part-cta .btn-book-now {
    width: 100% !important;
    min-width: 0 !important;
}

/* Hide View Details button */
.btn-view-details {
    display: none !important;
}

/* Original styles - View Details button (hidden) */

.btn-view-details {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-view-details:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-book-now {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    letter-spacing: -0.01em !important;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.4),
                0 2px 6px rgba(30, 64, 175, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    flex: 1 !important;
    min-width: 150px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    line-height: 1.2 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-decoration: none !important;
    margin: 0 !important;
}

.btn-book-now span {
    font-size: 1.15rem;
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.btn-book-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-book-now:hover::before {
    left: 100%;
}

.btn-book-now:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.5),
                0 4px 12px rgba(30, 64, 175, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-book-now:hover span {
    transform: translateY(-1px) scale(1.1);
}

.btn-book-now:active {
    transform: translateY(0px) scale(0.99);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4),
                inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-book-now:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4),
                0 4px 14px rgba(30, 64, 175, 0.4),
                0 2px 6px rgba(30, 64, 175, 0.25);
}

.btn-book-now:focus:not(:hover) {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
}

.no-results {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-color);
    margin: var(--spacing-xl) 0;
}

.no-results h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    color: var(--text-primary);
}

.no-results p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Footer – compact bottom bar */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 1rem 0 0.75rem;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: 1.25rem 2rem;
    margin-bottom: 0.75rem;
}

.footer-part {
    min-width: 0;
}

.footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: white;
    margin-bottom: 0.25rem;
}

.footer-logo:hover {
    color: white;
    opacity: 0.95;
}

.footer-logo-img {
    height: 1.5rem;
    min-width: 56px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    vertical-align: middle;
}

.footer-logo-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: 0.75rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 220px;
}

.footer-section h3,
.footer-section h4 {
    margin: 0 0 0.4rem 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.2rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
}

.footer-bottom p {
    margin: 0;
}

/* Best hotels grid (booking.com style) */
.best-hotels-section {
    padding: 2rem 0 2.5rem;
    background: #f8fafc;
}

.best-hotels-section-below-results {
    margin-top: 0;
    padding-top: 2rem;
}

.best-hotels-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.best-hotels-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

.best-hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.best-hotel-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    text-align: left;
    cursor: pointer;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    padding: 0;
    font: inherit;
}

.best-hotel-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Best hotel card image – fixed size so all cards look uniform */
.best-hotels-section .best-hotel-card-image,
.best-hotels-section-below-results .best-hotel-card-image {
    position: relative !important;
    width: 100% !important;
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0;
    background: #e2e8f0;
}

.best-hotels-section .best-hotel-card-image img,
.best-hotels-section-below-results .best-hotel-card-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.best-hotel-stars {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
    z-index: 1;
}

.best-hotel-card-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem 1.25rem;
}

.best-hotel-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.best-hotel-desc {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.best-hotel-rating {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.best-hotel-rating-num {
    font-weight: 700;
    color: #1e293b;
}

.best-hotel-rating-label {
    color: #64748b;
    margin-left: 0.25rem;
}

.best-hotel-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color, #2563eb);
}

.best-hotel-card:hover .best-hotel-cta {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .best-hotels-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .best-hotels-section {
        padding: 1.5rem 0 2rem;
    }
    .best-hotels-title {
        font-size: 1.25rem;
    }
    .best-hotels-section .best-hotel-card-image,
    .best-hotels-section-below-results .best-hotel-card-image {
        height: 140px !important;
        min-height: 120px !important;
        max-height: 140px !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .results-layout {
        grid-template-columns: 260px 1fr;
        gap: 1rem;
    }
    
    .hotel-card {
        grid-template-columns: 200px 1fr;
        min-height: 170px;
    }
    
    .hotel-image {
        min-height: 180px;
        max-height: 180px;
    }
    
    .hotel-content {
        padding: 0.75rem 0.875rem;
        min-height: 170px;
    }
}

@media (max-width: 1200px) {
    .search-form-grid {
        grid-template-columns: 1.5fr 1fr 1fr minmax(240px, 1.25fr) 1fr;
    }
}

@media (max-width: 1024px) {
    .search-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-form-grid .form-group:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0 3rem;
    }
    
    .hero-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title, .hero-content h1, .hero-content h4, .hero-content .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle, .hero-content p, .hero-content .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.75rem;
    }
    
    .search-form {
        padding: 0;
        border-radius: 12px;
    }
    
    .search-form-wrapper {
        padding: 0 1rem 0;
    }
    
    .search-form-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    
    .search-form .form-group {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        min-height: 52px;
        padding: 0.5rem 0;
    }
    
    .search-form .form-group:last-child {
        border-bottom: none;
    }
    
    .search-form .form-group input[type="text"],
    .search-form .form-group input[type="date"],
    .search-form .form-group .guests-selector input[readonly] {
        padding: 0.5rem 0 0.5rem 0;
        border: none;
        background: transparent;
    }
    
    .search-form .form-group .btn-search {
        min-height: 48px;
        border-radius: 8px;
        margin: 0.5rem 0;
    }
    
    .btn-search-pro {
        min-height: 48px;
        border-radius: 10px;
        margin: 0.5rem 1rem;
    }
    
    .results-page {
        padding: 0.75rem 0 1.25rem;
    }
    
    .results-page .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .results-layout {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .filters-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .price-inputs {
        flex-wrap: wrap;
    }
    
    .price-inputs input {
        min-width: 120px;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 88%;
        max-width: 360px;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1000;
        transition: left 0.25s ease;
        border-radius: 0;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }
    
    .price-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .price-inputs span {
        display: none;
    }
    
    .price-inputs input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .price-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .price-input-group {
        max-width: none;
    }
    
    .price-divider {
        align-self: center;
        padding: 0.15rem 0;
    }
    
    .btn-apply-price {
        width: 100%;
        min-height: 44px;
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    .btn-close-filters {
        display: block;
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }
    
    .btn-toggle-filters {
        display: flex;
        min-height: 44px;
        padding: 0.5rem 0.875rem;
    }
    
    .hotel-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    
    .hotel-image {
        min-height: 180px;
        max-height: 200px;
        border-radius: 12px 12px 0 0;
        grid-template-columns: 1fr 40px;
        grid-template-rows: 1fr 36px;
        padding: 0.25rem;
    }
    
    .hotel-content {
        padding: 0.75rem 0.875rem;
        min-height: 0;
    }
    
    .hotel-header {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hotel-name {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.3;
    }
    
    .hotel-price {
        text-align: left;
        min-width: 0;
    }
    
    .results-page .price-compare-block {
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    
    .results-info h2 {
        font-size: 1.1rem;
        line-height: 1.35;
    }
    
    .results-info p {
        font-size: 0.8125rem;
    }
    
    .results-header {
        flex-direction: column;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .results-actions {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .sort-select {
        min-width: 0;
        flex: 1;
        max-width: 100%;
        min-height: 44px;
    }
    
    .search-form-inline-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-modify-search {
        width: 100%;
        margin-left: 0;
    }
}

/* Home screen: small phones (480px) */
@media (max-width: 480px) {
    .main-content {
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-section {
        padding: 1.75rem 0 2.25rem;
    }
    
    .hero-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-title, .hero-content h1, .hero-content h4, .hero-content .hero-title {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    
    .hero-subtitle, .hero-content p, .hero-content .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
        padding: 0 0.25rem;
    }
    
    .search-form-pro {
        border-radius: 12px;
    }
    
    .search-form-wrapper {
        padding: 0 0.75rem 0;
    }
    
    .search-form .form-group {
        min-height: 48px;
        padding: 0.4rem 0;
    }
    
    .search-form .form-group label {
        padding-left: 0;
        font-size: 0.625rem;
    }
    
    .search-form .form-group input[type="text"],
    .search-form .form-group input[type="date"] {
        font-size: 0.9375rem;
        min-height: 44px;
    }
    
    .btn-search-pro {
        min-height: 44px;
        margin: 0.5rem 0.75rem;
        font-size: 0.9375rem;
    }
    
    .cities-section {
        padding: 2.5rem 0 3rem;
    }
    
    .cities-section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .cities-section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .city-card-name {
        font-size: 0.8125rem;
        padding: 0.35rem 0.4rem;
    }
    
    .features-section-pro {
        padding: 2rem 0 2.5rem;
    }
    
    .features-section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .feature-card-pro {
        padding: 1.25rem 1rem;
    }
    
    .feature-card-pro h3 {
        font-size: 1rem;
    }
    
    .feature-card-pro p {
        font-size: 0.75rem;
    }
    
    .feature-card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }
    
    .feature-card-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Home screen: extra small phones (380px) */
@media (max-width: 380px) {
    .hero-section {
        padding: 1.5rem 0 2rem;
    }
    
    .hero-title, .hero-content h1, .hero-content h4, .hero-content .hero-title {
        font-size: 1.35rem;
    }
    
    .hero-subtitle, .hero-content p, .hero-content .hero-subtitle {
        font-size: 0.8125rem;
        margin-bottom: 1.25rem;
    }
    
    .search-form-wrapper {
        padding: 0 0.5rem 0;
    }
    
    .btn-search-pro {
        margin: 0.5rem 0.5rem;
    }
    
    .cities-section-title {
        font-size: 1.35rem;
    }
    
    .cities-section-subtitle {
        font-size: 0.9375rem;
    }
    
    .results-page .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .results-page .results-info h2 {
        font-size: 0.875rem;
    }
    
    .hotel-name {
        font-size: 0.875rem;
    }
    
    .amount {
        font-size: 1.125rem;
    }
}

/* Results page: small tablets and large phones */
@media (max-width: 600px) {
    .results-page {
        padding: 0.5rem 0 1rem;
    }
    
    .results-page .container {
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }
    
    .hotels-list {
        gap: 0.625rem;
    }
    
    .hotel-card {
        border-radius: 10px;
    }
    
    .hotel-image {
        min-height: 160px;
        max-height: 180px;
        grid-template-columns: 1fr 36px;
        grid-template-rows: 1fr 32px;
    }
    
    .hotel-image-thumbnail {
        min-height: 36px;
    }
    
    .hotel-image-bottom-thumbnails {
        min-height: 36px;
    }
    
    .hotel-image-bottom-thumbnail {
        width: 36px;
        height: 36px;
    }
    
    .hotel-content {
        padding: 0.625rem 0.75rem;
    }
    
    .hotel-name {
        font-size: 0.9375rem;
    }
    
    .amount {
        font-size: 1.25rem;
    }
    
    .results-info h2 {
        font-size: 1rem;
    }
    
    .filter-section {
        margin-bottom: 0.75rem;
        padding-bottom: 0.625rem;
    }
    
    .star-rating-filter,
    .amenities-filter,
    .viewpoint-filter {
        gap: 0.5rem;
    }
}

/* Results page: small phones */
@media (max-width: 480px) {
    .results-page .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .results-page .filters-sidebar {
        width: 92%;
        max-width: none;
        padding: 0.875rem;
    }
    
    .results-page .results-info h2 {
        font-size: 0.9375rem;
    }
    
    .results-page .results-info p,
    .results-page .results-max-info {
        font-size: 0.75rem;
    }
    
    .results-page .hotel-card .hotel-image {
        min-height: 140px;
        max-height: 160px;
    }
    
    .results-page .price-range-box {
        padding: 0.75rem 1rem;
    }
    
    .results-page .price-quick-chips .chip,
    .results-page .btn-quick-range {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Image Gallery Modal */
.image-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.image-gallery-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    z-index: 10001;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.image-gallery-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: all 0.3s ease;
}

.image-gallery-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
}

.image-gallery-main {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.image-gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-tertiary);
}

.image-gallery-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

/* Image gallery: do not show labels (Front View, Restaurant, Kitchen, etc.) */
.image-gallery-label,
.image-gallery-modal .image-gallery-label,
.image-gallery-image-wrapper > div:not(.image-gallery-counter) {
    display: none !important;
    visibility: hidden !important;
}

.image-gallery-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.image-gallery-nav {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    font-size: 2.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.image-gallery-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.image-gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.image-gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.image-gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.image-gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.image-gallery-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.image-gallery-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.image-gallery-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary-light);
}

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

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

/* Hotel Details Modal */
.hotel-details-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.hotel-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.hotel-details-modal {
    position: relative;
    width: 98%;
    max-width: 1400px;
    max-height: 98vh;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10001;
    animation: slideUp 0.4s ease;
}

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

.hotel-details-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hotel-details-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg) scale(1.1);
}

.hotel-details-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 2px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hotel-details-title-section h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.hotel-details-location {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.hotel-details-rating {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rating-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.7rem;
}

.star-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.7rem;
}

.hotel-details-price-section {
    text-align: right;
    min-width: 180px;
}

.detail-price-main,
.detail-price-original,
.detail-price-discounted {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.detail-currency {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-amount {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-amount-crossed {
    font-size: 1rem;
    font-weight: 600;
    text-decoration: line-through;
    color: var(--text-secondary);
    opacity: 0.7;
}

.detail-period {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.detail-discount-badge {
    background: var(--success-color);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

.detail-price-total {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0.25rem;
}

.hotel-details-content {
    flex: 1;
    overflow: hidden;
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-height: calc(98vh - 200px);
}

.hotel-details-images {
    position: sticky;
    top: 0;
    height: fit-content;
    max-height: calc(98vh - 200px);
    overflow: hidden;
}

.hotel-details-main-image {
    position: relative;
    width: 60%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-md);
}

.hotel-details-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-counter {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.hotel-details-image-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.3rem;
    width: 60%;
}

.detail-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.detail-thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.detail-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.detail-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-images {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.more-images:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hotel-details-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: calc(98vh - 200px);
    padding-right: 0.5rem;
}

.hotel-details-info::-webkit-scrollbar {
    width: 4px;
}

.hotel-details-info::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.hotel-details-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-light);
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    font-size: 0.75rem;
}

.detail-info-grid div {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--primary-color);
}

.detail-info-grid strong {
    color: var(--text-primary);
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.rooms-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.rooms-list::-webkit-scrollbar {
    width: 4px;
}

.rooms-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.room-detail-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.room-detail-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.room-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.room-detail-header h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.room-detail-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
}

.room-price-original-crossed {
    text-decoration: line-through;
    color: var(--text-secondary);
    opacity: 0.7;
    font-size: 0.65rem;
}

.room-price-discounted {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
}

.room-price-normal {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
}

.room-discount-badge-small {
    background: var(--success-color);
    color: white;
    padding: 0.15rem 0.3rem;
    border-radius: var(--radius-sm);
    font-size: 0.6rem;
    font-weight: 700;
}

.room-detail-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.room-description {
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
}

.room-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.room-specs span {
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.policy-badge {
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.policy-badge.free {
    background: #d1fae5;
    color: #065f46;
    border-left: 2px solid var(--success-color);
}

.policy-badge.warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 2px solid var(--secondary-color);
}

.payment-detail-info {
    padding: 0.4rem 0.6rem;
    background: #dbeafe;
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    border-left: 2px solid var(--primary-color);
}

.room-availability {
    padding: 0.4rem 0.6rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.hotel-details-footer {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-light);
    display: flex;
    justify-content: center;
}

.btn-detail-book-now {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.3px;
}

.btn-detail-book-now:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.no-images {
    padding: 3rem;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
}

@media (max-width: 768px) {
    .hotel-details-content {
        grid-template-columns: 1fr;
    }
    
    .hotel-details-header {
        flex-direction: column;
    }
    
    .hotel-details-price-section {
        text-align: left;
        width: 100%;
    }
    
    .hotel-details-main-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .search-form {
        padding: 1rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .hotel-card {
        grid-template-columns: 1fr;
    }
    
    .hotel-image {
        grid-template-columns: 1fr;
        grid-template-rows: 250px auto auto;
        min-height: auto;
        max-height: none;
    }
    
    .hotel-image-main {
        grid-column: 1;
        grid-row: 1;
    }
    
    .hotel-image-thumbnails {
        grid-column: 1;
        grid-row: 2;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .hotel-image-thumbnail {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .image-gallery-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 1rem;
    }
    
    .image-gallery-main {
        height: 60vh;
    }
    
    .image-gallery-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 2rem;
    }
    
    .hotel-details-modal {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .hotel-details-header {
        padding: 1.5rem;
    }
    
    .hotel-details-content {
        padding: 1.5rem;
    }
    
    .hotel-details-main-image {
        height: 250px;
    }
}

/* Register Property Modal */
.register-property-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.register-property-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.register-property-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.register-property-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.register-property-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid #e2e8f0;
    border-radius: 16px 16px 0 0;
}

.register-property-header-text {
    flex: 1;
    min-width: 0;
}

.register-property-modal-header h2 {
    margin: 0 0 0.35rem 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.register-property-subtitle {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
}

.register-property-modal-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0.35rem;
    margin: -0.35rem -0.35rem 0 0;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.register-property-modal-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.register-property-form {
    padding: 1.5rem 1.75rem 1.75rem;
}

.register-property-section {
    margin-bottom: 1.75rem;
}

.register-property-section:last-of-type {
    margin-bottom: 0;
}

.register-property-section-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: none;
    letter-spacing: -0.01em;
}

.register-property-section-desc {
    margin: 0 0 1rem 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.register-property-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.register-property-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.register-property-field.full {
    grid-column: 1 / -1;
}

.register-property-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.register-property-field label .required {
    color: #dc2626;
}

.register-property-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.35;
}

.register-property-field input,
.register-property-field select {
    padding: 0.55rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.register-property-field input:hover,
.register-property-field select:hover {
    border-color: #cbd5e1;
}

.register-property-field input:focus,
.register-property-field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.register-property-field input::placeholder {
    color: #94a3b8;
}

.register-property-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.btn-register-property-cancel {
    padding: 0.6rem 1.35rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-register-property-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-register-property-submit {
    padding: 0.6rem 1.5rem;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-register-property-submit:hover {
    background: #1d4ed8;
}

.btn-register-property-submit:active {
    transform: scale(0.98);
}

/* Register Property – message dialog (success / failure) */
.register-property-message-dialog {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
    text-align: center;
}

.register-property-message-at-top {
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 0 0 10px 10px;
}

.register-property-message-dialog.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.register-property-message-dialog.error {
    background: #fef2f2;
    border-color: #fecaca;
}

.register-property-message-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.register-property-message-icon.icon-success {
    background: #22c55e;
    color: #fff;
}

.register-property-message-icon.icon-success::before {
    content: '✓';
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

.register-property-message-icon.icon-error {
    background: #ef4444;
    color: #fff;
}

.register-property-message-icon.icon-error::before {
    content: '!';
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

.register-property-message-title {
    margin: 0 0 0.35rem 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1e293b;
}

.register-property-message-dialog.success .register-property-message-title {
    color: #166534;
}

.register-property-message-dialog.error .register-property-message-title {
    color: #991b1b;
}

.register-property-message-text {
    margin: 0 0 1rem 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #475569;
}

.register-property-message-dialog.success .register-property-message-text {
    color: #15803d;
}

.register-property-message-dialog.error .register-property-message-text {
    color: #b91c1c;
}

.btn-register-property-msg-close {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    background: #1e293b;
    color: #fff;
    transition: background 0.2s;
}

.btn-register-property-msg-close:hover {
    background: #334155;
}

@media (max-width: 600px) {
    .register-property-grid {
        grid-template-columns: 1fr;
    }
    .register-property-field.full {
        grid-column: 1;
    }
}

/* ========== Mobile responsive: header, nav, footer, global ========== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1002;
    border-radius: 8px;
    transition: background 0.2s;
}
.nav-toggle:hover {
    background: var(--bg-tertiary);
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}
body.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
body.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}
body.nav-open .nav-overlay {
    opacity: 1;
}

@media (max-width: 1024px) {
    .header-container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    .nav-toggle {
        display: flex;
    }
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 100vw);
        height: 100vh;
        height: 100dvh;
        background: var(--bg-primary);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 5rem 1.25rem 2rem;
        z-index: 1001;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    .nav-link {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border-light);
        font-size: 1rem;
    }
    .nav-link::after {
        display: none;
    }
    .nav-link-highlight {
        margin: 0.25rem 0;
        padding: 0.65rem 1rem;
        border-radius: 8px;
        border-bottom: none;
    }
    body.nav-open .nav {
        transform: translateX(0);
    }
    .nav-overlay {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem 0;
    }
    .logo h1 {
        font-size: 1.4rem;
    }
    .logo-img {
        height: 2rem;
        min-width: 80px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .footer-part.footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-tagline {
        max-width: none;
        text-align: center;
    }
    .footer-part.footer-section {
        text-align: center;
    }
    .footer-section h3,
    .footer-section h4 {
        margin-bottom: 0.35rem;
    }
    .footer {
        padding: 0.875rem 0 0.6rem;
    }
    .footer-bottom {
        padding-top: 0.5rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .nav {
        width: 100%;
    }
}

body.nav-open {
    overflow: hidden;
}

/* Touch-friendly: minimum tap target 44px where needed */
@media (max-width: 1024px) {
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Prevent horizontal scroll on small viewports */
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
}

/* Extra small screens: tighter padding and typography */
@media (max-width: 380px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .logo h1 {
        font-size: 1.2rem;
    }
}

/* Register property page: mobile */
@media (max-width: 768px) {
    .rp-page .rp-container,
    .rp-page .rp-main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .rp-page .rp-hero {
        padding: 1.75rem 0 2rem;
    }
    .rp-page .rp-hero-title {
        font-size: 1.5rem;
    }
    .rp-page .rp-hero-subtitle {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .rp-page .rp-container,
    .rp-page .rp-main {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Visiting points page: mobile (extends inline styles in template) */
@media (max-width: 768px) {
    .vp-page .vp-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .vp-page .vp-hero {
        padding: 1.5rem 0 2rem;
    }
    .vp-page .vp-hero-title {
        font-size: 1.5rem;
    }
    .vp-page .vp-card {
        padding: 1rem 1.25rem;
    }
    .vp-page .vp-grid {
        grid-template-columns: 1fr;
    }
    .vp-page .vp-map {
        height: 320px;
        min-height: 320px;
    }
}

@media (max-width: 480px) {
    .vp-page .vp-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .vp-page .vp-map {
        height: 280px;
        min-height: 280px;
    }
}