:root {
    /* Brand Colors */
    --brand-primary: #0052A1;
    --brand-medium: #0077CC;
    --brand-light: #3399FF;
    --brand-accent: #FF7B00;

    /* Legacy support */
    --brand-color: #0052A1;

    /* Text Colors */
    --text-dark: #222222;
    --text-light: #717171;
    --text-white: #FFFFFF;

    /* Background Colors */
    --background-light: #FFFFFF;
    --background-gray: #F7F7F7;
    --background-glass: rgba(255, 255, 255, 0.25);
    --background-glass-strong: rgba(255, 255, 255, 0.4);

    /* Border Colors */
    --border-color: #DDDDDD;
    --border-glass: rgba(255, 255, 255, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-medium) 50%, var(--brand-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--brand-accent) 0%, #FF9533 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    --gradient-hover: linear-gradient(135deg, rgba(0, 82, 161, 0.1) 0%, rgba(51, 153, 255, 0.1) 100%);

    /* Shadows */
    --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.37);
    --shadow-button: 0 4px 15px rgba(0, 82, 161, 0.3);
    --shadow-hover: 0 8px 25px rgba(0, 82, 161, 0.4);

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Layout */
    --header-height: 160px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--background-light);
    padding-top: var(--header-height);
    /* Prevent content from hiding behind fixed header */
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-light);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    height: 48px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.become-host-btn,
.user-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 12px;
    border-radius: 22px;
    transition: background-color var(--transition-normal);
}

.become-host-btn:hover {
    background-color: var(--background-gray);
}

.become-host-btn:active,
.user-menu-btn:active {
    transform: scale(0.95);
    background-color: #e0e0e0;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
}

.user-menu-btn i {
    font-size: 18px;
}

/* Search Bar */
.search-bar-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 850px;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.search-bar:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.search-bar-field {
    flex: 1;
    padding: 14px var(--spacing-lg);
    position: relative;
}

.search-bar-field:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.search-bar-field label {
    font-size: 12px;
    font-weight: 800;
    display: block;
    margin-bottom: 2px;
}

.search-bar-field input {
    border: none;
    background: none;
    width: 100%;
    font-size: 14px;
    color: var(--text-light);
}

.search-bar-field input:focus {
    outline: none;
}

.search-bar-field.with-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 10px;
}

.search-btn {
    background-color: var(--brand-color);
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-weight: 600;
    transition: background-color var(--transition-normal);
}

.search-btn:hover {
    background-color: #e01c4f;
}

.search-btn span {
    display: none;
    /* Hidden on mobile by default */
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    overflow-x: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.category-filters::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.category-filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-light);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-normal);
}

.category-filter-item:hover {
    color: var(--text-dark);
    border-bottom-color: var(--border-color);
}

.category-filter-item.active {
    color: var(--text-dark);
    border-bottom-color: var(--text-dark);
}

.category-filter-item:active {
    transform: scale(0.95);
}

.category-filter-item i {
    font-size: 24px;
}

.category-filter-item span {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.spaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* Space Card (Listing) */
.space-card {
    cursor: pointer;
    text-align: left;
    /* Micro-interaction properties */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    /* Start hidden for animation */
    transform: translateY(20px);
    /* Start slightly lower */
    animation: card-fade-in 0.5s ease forwards;
}

.space-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

@keyframes card-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.space-image-container {
    width: 100%;
    padding-bottom: 100%;
    /* Aspect Ratio 1:1 */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.space-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, color 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.space-info {
    padding: 4px;
}

.space-location {
    font-weight: 600;
    margin-bottom: 2px;
}

.space-title {
    color: var(--text-light);
    margin-bottom: 4px;
}

.space-price {
    margin-top: 8px;
}

.space-price b {
    font-weight: 800;
}

.space-rating {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Skeleton Loader for Cards */
.skeleton-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.skeleton-image {
    width: 100%;
    padding-bottom: 100%;
    /* 1:1 Aspect Ratio */
    background-color: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.skeleton-info {
    padding: 12px;
}

.skeleton-text {
    height: 16px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.price {
    width: 40%;
    margin-top: 12px;
}

/* Shimmer Animation */
.shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, 0.5) 50%, transparent 80%);
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Small Search Bar (on scroll) */
.header.scrolled .search-bar-container {
    transform: translateY(-100px) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.small-search-bar {
    display: flex;
    align-items: center;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-150px) scale(0.5);
    opacity: 0;
    transition: all var(--transition-normal);
    pointer-events: none;
}

.header.scrolled .small-search-bar {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.small-search-bar button {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.small-search-bar .light-text {
    color: var(--text-light);
    font-weight: 400;
}

.small-search-bar .divider {
    height: 24px;
    width: 1px;
    background-color: var(--border-color);
}

.search-icon-container {
    background-color: var(--brand-color);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

/* Footer */
.footer {
    background-color: var(--background-gray);
    border-top: 1px solid var(--border-color);
    padding: 48px var(--spacing-lg) 24px;
    margin-top: 80px;
}

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

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 48px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 16px;
}

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

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: text-decoration var(--transition-normal);
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-light);
}

.footer-bottom-left {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom-left a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom-left a:hover {
    text-decoration: underline;
}

.footer-bottom-right {
    display: flex;
    gap: 24px;
}

.footer-bottom-right a {
    color: var(--text-dark);
    font-size: 18px;
    transition: color var(--transition-normal);
}

.footer-bottom-right a:hover {
    color: var(--brand-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fade-in 0.3s;
}

.modal.active {
    display: block;
    /* Ensure the modal is displayed when active */
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--background-light);
    margin: 10% auto;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modal-slide-in 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 800;
}

.close {
    position: absolute;
    top: 16px;
    right: 20px;
    /* Changed from left to right */
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    background: var(--background-gray);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: var(--text-dark);
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 0;
}

.divider span {
    background: white;
    padding: 0 16px;
    color: var(--text-gray);
    position: relative;
    z-index: 1;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form input {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.login-form input:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 1px var(--brand-color);
}

.btn-primary {
    background: linear-gradient(45deg, var(--brand-color), #d90b35);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 8px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 100%);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
}

.btn-primary:hover::before {
    left: 150%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 28, 79, 0.3);
}

.signup-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.signup-link a {
    color: var(--text-dark);
    text-decoration: underline;
    font-weight: 600;
}

/* --- Detail Page Styles --- */

.detail-main-content {
    max-width: 1120px;
    margin: 40px auto;
    padding: 0 var(--spacing-lg);
}

.detail-header h1 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
}

.detail-subtitle {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
}

.detail-subtitle .rating {
    color: var(--text-dark);
}

.detail-subtitle .reviews,
.detail-subtitle .location {
    color: var(--text-light);
    text-decoration: underline;
}

.detail-actions {
    margin-left: auto;
    /* Pushes buttons to the right */
    display: flex;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background-color: var(--background-gray);
}

.action-btn i {
    font-size: 16px;
}

/* Share Modal Specific Styles */
.share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.share-option:hover {
    background-color: var(--background-gray);
}

.share-option i {
    font-size: 20px;
    width: 24px;
    /* Fixed width for icon alignment */
    text-align: center;
}

/* Save Modal Specific Styles */
.save-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.save-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
}

.save-list-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--brand-color);
}

.save-list-item label {
    font-size: 16px;
    font-weight: 500;
    flex-grow: 1;
}

.save-list-item.create-new-list {
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.2s ease;
}

.save-list-item.create-new-list:hover {
    color: var(--brand-color);
}

.save-list-item.create-new-list i {
    font-size: 20px;
}

.new-list-input {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.new-list-input input {
    flex-grow: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.new-list-input button {
    padding: 10px 16px;
    font-size: 14px;
}

.save-to-list-btn {
    width: 100%;
}

/* --- Photo Tour Modal Styles --- */
.photo-gallery {
    margin-top: 24px;
    position: relative;
    /* Added for overlay positioning */
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
}

.main-image {
    grid-row: 1 / -1;
}

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

.secondary-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    grid-column: 2 / 3;
    grid-row: 1 / -1;
}

.secondary-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.view-all-photos-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-gallery:hover .view-all-photos-overlay {
    opacity: 1;
}

/* Detail Body */
.detail-body-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 80px;
    margin-top: 48px;
}

.detail-info-column hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 32px 0;
}

.space-host-info h2 {
    font-size: 22px;
    font-weight: 600;
}

.space-host-info p {
    color: var(--text-light);
    margin-top: 8px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.highlight-item i {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.highlight-item h3 {
    font-size: 16px;
    font-weight: 600;
}

.highlight-item p {
    font-size: 14px;
    color: var(--text-light);
}

.space-description h3,
.space-amenities h3,
.reviews-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
}

.space-amenities ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.space-amenities li {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Booking Card */
.booking-card-column {
    position: relative;
}

.booking-card {
    position: sticky;
    top: 120px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    background-color: #ffffff;
}

.booking-price {
    font-size: 22px;
    margin-bottom: 24px;
}

.booking-price span {
    font-weight: 400;
    font-size: 16px;
}

.booking-form .date-inputs {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
}

.date-field {
    flex: 1;
    padding: 10px 12px;
}

.date-field:first-child {
    border-right: 1px solid var(--border-color);
}

.date-field label,
.guest-input label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
}

.date-field input,
.guest-input input {
    border: none;
    width: 100%;
    padding-top: 2px;
    font-size: 14px;
}

.date-field input:focus,
.guest-input input:focus {
    outline: none;
}

.guest-input {
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 10px 12px;
}

.booking-form .btn-primary {
    margin-top: 16px;
}

.booking-charge-notice {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin: 16px 0 24px 0;
}

.price-breakdown,
.price-total {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 16px;
}

.price-breakdown span {
    text-decoration: underline;
}

.price-total {
    font-weight: 800;
    margin-top: 24px;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 48px 0;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.rating-bar {
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    width: 100%;
}

.rating-bar .bar {
    height: 100%;
    background-color: var(--text-dark);
    border-radius: 2px;
}

.review-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.user-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.user-review-card .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-review-card .user-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.user-review-card .user-info h4 {
    font-weight: 600;
}

.user-review-card .user-info span {
    color: var(--text-light);
    font-size: 14px;
}

/* --- Photo Tour Modal Styles --- */
.photo-tour-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-light);
    z-index: 2000;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.photo-tour-modal.active {
    transform: translateY(0);
}

.photo-tour-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 24px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.close-photo-tour-btn {
    background: var(--background-gray);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}

.photo-tour-content {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 24px;
}

.photo-category-section {
    margin-bottom: 60px;
}

.photo-category-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.photo-grid {
    display: grid;
    gap: 16px;
}

.photo-grid img {
    width: 100%;
    border-radius: 8px;
}

/* Notification System */
.photo-tour-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-light);
    z-index: 2000;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.photo-tour-modal.active {
    transform: translateY(0);
}

.photo-tour-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 24px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.close-photo-tour-btn {
    background: var(--background-gray);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}

.photo-tour-content {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 24px;
}

.photo-category-section {
    margin-bottom: 60px;
}

.photo-category-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.photo-grid {
    display: grid;
    gap: 16px;
}

.photo-grid img {
    width: 100%;
    border-radius: 8px;
}

/* Notification System */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 200%);
    background-color: var(--text-dark);
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification.show {
    transform: translate(-50%, 0);
}

.notification.success {
    background-color: #28a745;
}

.notification.info {
    background-color: #17a2b8;
}

.notification.warning {
    background-color: #ffc107;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
        /* Only top bar is visible initially */
    }

    .header {
        border-bottom: 1px solid var(--border-color);
    }

    .search-bar-container {
        display: none;
        /* Hide full search bar on mobile */
    }

    .header-top {
        padding: 0 var(--spacing-md);
    }

    .header.search-active {
        /* This class will be toggled with JS to show a simplified search */
    }

    .become-host-btn {
        display: none;
        /* Hide on mobile for simplicity */
    }

    .main-content {
        padding: var(--spacing-md);
    }

    .spaces-grid {
        gap: var(--spacing-md);
    }

    .header-center {
        display: none;
        /* Hide on mobile */
    }
}

/* Desktop and larger screens */
@media (min-width: 769px) {
    .search-btn span {
        display: inline;
    }
}

/* ===== MODAL STYLES FOR DETAIL.HTML ===== */

/* Detail Action Buttons */
.detail-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: white;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.action-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 38, 135, 0.3);
}

.action-btn i {
    font-size: var(--text-base);
}

/* Photo Gallery Enhancements */
.view-all-photos-overlay {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.view-all-photos-overlay:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 38, 135, 0.4);
}

.photo-gallery {
    position: relative;
}

/* Share Modal */
#shareModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

#shareModal .modal-content {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px) saturate(180%);
    margin: 5% auto;
    padding: var(--spacing-xl);
    border: 1px solid var(--glass-border);
    border-radius: var(--spacing-md);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.4s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.modal-header h2 {
    color: white;
    font-size: var(--text-xl);
    font-weight: 600;
}

.close-share-modal,
.close-save-modal {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-2xl);
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-share-modal:hover,
.close-save-modal:hover {
    color: white;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--spacing-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    color: white;
}

.share-option:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 38, 135, 0.3);
}

.share-option i {
    font-size: var(--text-xl);
}

.share-option span {
    font-size: var(--text-sm);
    font-weight: 500;
}

.copy-link-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--spacing-md);
    border-radius: var(--spacing-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
}

.copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 204, 0.4);
}

/* Save Modal */
#saveModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

#saveModal .modal-content {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px) saturate(180%);
    margin: 5% auto;
    padding: var(--spacing-xl);
    border: 1px solid var(--glass-border);
    border-radius: var(--spacing-md);
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.4s ease;
}

.save-options {
    margin-bottom: var(--spacing-lg);
}

.save-list-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    cursor: pointer;
    color: white;
    transition: all var(--transition-fast);
}

.save-list-item:hover {
    background: var(--gradient-hover);
    border-radius: var(--spacing-xs);
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.save-list-item input[type="checkbox"] {
    accent-color: var(--azul-medio);
    width: 18px;
    height: 18px;
}

.save-list-item label {
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
}

.create-new-list {
    color: var(--azul-claro);
    font-weight: 600;
    justify-content: flex-start;
}

.create-new-list i {
    font-size: var(--text-lg);
}

.new-list-input {
    margin-top: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-sm);
}

.new-list-input input {
    flex: 1;
    padding: var(--spacing-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--spacing-xs);
    background: var(--glass-bg);
    color: white;
    font-size: var(--text-sm);
}

.new-list-input input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.create-list-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--spacing-xs);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.create-list-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.3);
}

.save-to-list-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--spacing-md);
    border-radius: var(--spacing-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
}

.save-to-list-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 204, 0.4);
}

/* Photo Tour Modal */
.photo-tour-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.photo-tour-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.close-photo-tour-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--spacing-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.close-photo-tour-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-1px);
}

.photo-tour-content {
    padding-top: 80px;
    height: 100vh;
    overflow-y: auto;
}

.photo-tour-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.photo-tour-item {
    position: relative;
    border-radius: var(--spacing-sm);
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.photo-tour-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.photo-tour-item:hover img {
    transform: scale(1.02);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: var(--spacing-md);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--spacing-sm);
    color: white;
    font-weight: 600;
    font-size: var(--text-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    max-width: 300px;
    animation: slideInRight 0.3s ease;
}

.notification.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.notification.warning {
    background: linear-gradient(135deg, #FF9800, #e68900);
}

.notification.error {
    background: linear-gradient(135deg, #f44336, #da190b);
}

.notification.info {
    background: linear-gradient(135deg, #2196F3, #0b7dda);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {

    #shareModal .modal-content,
    #saveModal .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: var(--spacing-lg);
    }

    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-tour-grid {
        padding: var(--spacing-sm);
    }

    .notification {
        right: 10px;
        max-width: calc(100% - 20px);
    }
}

/* Accessibility */
.modal-content:focus,
.photo-tour-modal:focus {
    outline: 2px solid var(--azul-claro);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modal-content {
        border: 2px solid white;
    }

    .share-option,
    .save-list-item {
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
}

/* 
===== DETAIL PAGE IMPROVEMENTS ===== */

/* Property Title */
.property-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Property Meta Information */
.property-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.property-meta .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--text-dark);
}

.property-meta .rating i {
    color: var(--brand-color);
    font-size: 14px;
}

.property-meta .reviews-link {
    color: var(--text-dark);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.property-meta .reviews-link:hover {
    color: var(--brand-color);
}

.property-meta .superhost-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dark);
    font-weight: 600;
}

.property-meta .superhost-badge i {
    color: #FFD700;
    font-size: 14px;
}

.property-meta .location-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dark);
    text-decoration: underline;
    cursor: pointer;
}

.property-meta .location-link:hover {
    color: var(--brand-color);
}

.property-meta .location-link i {
    font-size: 12px;
}

/* Detail Subtitle Layout */
.detail-subtitle {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

/* Action Buttons */
.detail-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.action-btn:hover {
    background-color: var(--background-gray);
    border-color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-btn i {
    font-size: 16px;
}

.action-btn span {
    font-weight: 600;
}

/* Photo Gallery Improvements */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.main-image {
    grid-row: 1 / -1;
}

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

.secondary-images {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.secondary-image {
    position: relative;
    overflow: hidden;
}

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

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

.secondary-image:last-child {
    position: relative;
}

.view-all-photos-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.view-all-photos-overlay:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Host Header */
.host-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.host-details h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.space-specs {
    color: var(--text-light);
    font-size: 16px;
    margin: 0;
}

.host-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.host-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Dividers */
.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 32px 0;
}

/* Space Highlights */
.space-highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.highlight-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon i {
    font-size: 20px;
    color: var(--text-dark);
}

.highlight-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.highlight-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.4;
}

/* Aircover Section */
.aircover-section {
    padding: 24px 0;
}

.aircover-logo {
    margin-bottom: 16px;
}

.aircover-section p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.learn-more-link {
    color: var(--text-dark);
    text-decoration: underline;
    font-weight: 600;
}

.learn-more-link:hover {
    color: var(--brand-color);
}

/* Space Description */
.space-description p {
    line-height: 1.6;
    margin-bottom: 16px;
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.show-more-btn:hover {
    color: var(--brand-color);
}

.show-more-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.show-more-btn:hover i {
    transform: translateX(2px);
}

/* Sleep Arrangements */
.sleep-arrangements h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
}

.bedroom-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 300px;
}

.bedroom-card img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.bedroom-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.bedroom-info p {
    color: var(--text-light);
    font-size: 14px;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.amenity-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: var(--text-dark);
}

.amenity-item span {
    font-size: 16px;
}

.show-all-amenities-btn {
    background: none;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.show-all-amenities-btn:hover {
    background-color: var(--text-dark);
    color: white;
}

/* Booking Card Improvements */
.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 0;
    gap: 16px;
}

.booking-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-shrink: 0;
}

.price-amount {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
}

.price-period {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
}

.booking-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

.booking-rating i {
    color: var(--brand-color);
    font-size: 12px;
}

.rating-value {
    font-weight: 600;
    color: var(--text-dark);
}

.rating-reviews {
    color: var(--text-light);
    text-decoration: underline;
    cursor: pointer;
}

/* Date and Guest Inputs */
.date-guest-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.date-inputs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.date-field {
    flex: 1;
    padding: 12px;
    position: relative;
}

.checkin-field {
    border-right: 1px solid var(--border-color);
}

.date-field label,
.guest-input label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.date-field input,
.guest-input input {
    border: none;
    background: none;
    width: 100%;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
}

.date-field input:focus,
.guest-input input:focus {
    outline: none;
}

.guest-input {
    padding: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.guest-input i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 12px;
}

/* Reserve Button */
.reserve-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Price Breakdown */
.price-breakdown {
    margin: 24px 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.3;
    gap: 16px;
}

.price-label {
    color: var(--text-dark);
    text-decoration: underline;
    cursor: pointer;
    flex: 1;
    text-align: left;
    word-wrap: normal;
    hyphens: none;
    word-break: normal;
    white-space: normal;
}

.price-value {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

.price-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

.price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    padding-top: 0;
    gap: 16px;
}

.total-label {
    color: var(--text-dark);
    flex: 1;
    text-align: left;
}

.total-amount {
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Report Listing */
.report-listing {
    margin-top: 24px;
    text-align: center;
}

.report-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.report-btn:hover {
    color: var(--text-dark);
}

/* Reviews Section Improvements */
.reviews-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reviews-header i {
    color: var(--brand-color);
    font-size: 20px;
}

.reviews-summary {
    margin-bottom: 48px;
}

.rating-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.rating-category {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-name {
    font-size: 14px;
    color: var(--text-dark);
}

.category-score {
    font-size: 14px;
    font-weight: 600;
}

.rating-bar {
    height: 4px;
    background-color: #E0E0E0;
    border-radius: 2px;
    overflow: hidden;
}

.rating-bar .bar {
    height: 100%;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* User Reviews */
.user-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.user-review-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.review-date {
    font-size: 14px;
    color: var(--text-light);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating i {
    color: var(--brand-color);
    font-size: 12px;
}

.review-text {
    line-height: 1.5;
    color: var(--text-dark);
}

.show-all-reviews-btn {
    background: none;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.show-all-reviews-btn:hover {
    background-color: var(--text-dark);
    color: white;
}

/* Location Section */
.location-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
}

.location-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.map-placeholder {
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.location-pin {
    width: 40px;
    height: 40px;
    background-color: var(--brand-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.location-details h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.location-details p {
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 16px;
}

.show-more-location-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.show-more-location-btn:hover {
    color: var(--brand-color);
}

/* Host Section */
.host-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.host-profile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
}

.host-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.host-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host-info h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.host-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.host-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.host-stat i {
    font-size: 16px;
    width: 20px;
}

.host-details {
    margin-bottom: 16px;
}

.host-details p {
    font-size: 14px;
    margin-bottom: 4px;
}

.host-description {
    line-height: 1.6;
    margin-bottom: 24px;
}

.contact-host-btn {
    background: none;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-host-btn:hover {
    background-color: var(--text-dark);
    color: white;
}

.host-protection {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background-color: var(--background-gray);
    border-radius: 12px;
}

.protection-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.protection-icon i {
    font-size: 24px;
    color: var(--brand-color);
}

.protection-text p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Things to Know Section */
.things-to-know-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 32px;
}

.things-to-know-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.know-category h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.know-category ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.know-category li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.know-category li:last-child {
    border-bottom: none;
}

.show-more-rules-btn,
.show-more-safety-btn,
.show-more-cancellation-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.show-more-rules-btn:hover,
.show-more-safety-btn:hover,
.show-more-cancellation-btn:hover {
    color: var(--brand-color);
}

/* Footer Improvements */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.language-currency {
    display: flex;
    gap: 16px;
}

.language-btn,
.currency-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: underline;
}

.language-btn:hover,
.currency-btn:hover {
    color: var(--brand-color);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--text-dark);
    font-size: 18px;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--brand-color);
}

/* Responsive Design for Detail Page */
@media (max-width: 1024px) {
    .detail-body-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .booking-card {
        position: static;
        order: -1;
    }

    .location-map {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .host-profile {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .detail-subtitle {
        flex-direction: column;
        gap: 16px;
    }

    .property-meta {
        flex-wrap: wrap;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        height: 300px;
    }

    .secondary-images {
        display: none;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .user-reviews {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .things-to-know-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/
/* ===== IMPROVED MODALS STYLES - MOBILE FIRST ===== */

/* General Modal Improvements */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: modalFadeIn 0.3s ease;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.modal.active {
    display: flex;
}

/* Desktop modal positioning */
@media (min-width: 768px) {
    .modal {
        align-items: center;
        padding: 20px;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.24);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    border: none;
}

/* Desktop modal content */
@media (min-width: 768px) {
    .modal-content {
        border-radius: 12px;
        width: auto;
        max-width: 90vw;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop slide animation */
@media (min-width: 768px) {
    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: translateY(50px) scale(0.95);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

/* Mobile modal header indicator */
.modal-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
}

/* Desktop modal header */
@media (min-width: 768px) {
    .modal-header {
        padding: 24px 24px 16px;
    }

    .modal-header::before {
        display: none;
    }
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.close-share-modal,
.close-save-modal {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.close-share-modal:hover,
.close-save-modal:hover {
    background-color: var(--background-gray);
}

.close-share-modal i,
.close-save-modal i {
    font-size: 16px;
    color: var(--text-dark);
}

/* Share Modal Specific Styles */
.share-modal-content {
    width: 100%;
}

@media (min-width: 768px) {
    .share-modal-content {
        width: 568px;
    }
}

.share-options {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.share-option:hover {
    background-color: var(--background-gray);
    padding-left: 12px;
    padding-right: 12px;
}

.share-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-gray);
    flex-shrink: 0;
}

.share-icon i {
    font-size: 20px;
    color: var(--text-dark);
}

.share-option[data-share-type="facebook"] .share-icon {
    background-color: #1877F2;
}

.share-option[data-share-type="facebook"] .share-icon i {
    color: white;
}

.share-option[data-share-type="twitter"] .share-icon {
    background-color: #1DA1F2;
}

.share-option[data-share-type="twitter"] .share-icon i {
    color: white;
}

.share-option[data-share-type="whatsapp"] .share-icon {
    background-color: #25D366;
}

.share-option[data-share-type="whatsapp"] .share-icon i {
    color: white;
}

.share-option[data-share-type="messenger"] .share-icon {
    background-color: #0084FF;
}

.share-option[data-share-type="messenger"] .share-icon i {
    color: white;
}

.share-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.share-text p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Save Modal Specific Styles */
.save-modal-content {
    width: 100%;
}

@media (min-width: 768px) {
    .save-modal-content {
        width: 568px;
    }
}

.save-options {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wishlist-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.wishlist-item:hover {
    background-color: var(--background-gray);
}

.wishlist-item.selected {
    border-color: var(--text-dark);
    background-color: var(--background-gray);
}

.wishlist-preview {
    width: 64px;
    height: 64px;
    position: relative;
    flex-shrink: 0;
}

.wishlist-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.wishlist-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-images img:first-child {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.wishlist-images img:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.wishlist-images img:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.wishlist-info {
    flex-grow: 1;
}

.wishlist-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.wishlist-info p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.wishlist-action {
    flex-shrink: 0;
}

.wishlist-action input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--text-dark);
    cursor: pointer;
}

.create-new-list {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-new-list:hover {
    border-color: var(--text-dark);
    background-color: var(--background-gray);
}

.create-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background-color: var(--background-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.create-icon i {
    font-size: 24px;
    color: var(--text-light);
}

.create-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.create-text p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.new-list-input {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--background-gray);
}

.new-list-input input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
}

.new-list-input input:focus {
    outline: none;
    border-color: var(--text-dark);
}

.input-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-secondary {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--background-gray);
}

.modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn-primary {
    width: 100%;
    margin: 0;
}

/* Photo Tour Modal Styles */
.photo-tour-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 10000;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.photo-tour-modal.active {
    transform: translateY(0);
}

.photo-tour-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.photo-tour-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.close-photo-tour-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.close-photo-tour-btn:hover {
    background-color: var(--background-gray);
}

.close-photo-tour-btn i {
    font-size: 16px;
}

.photo-tour-actions {
    display: flex;
    gap: 16px;
}

.photo-action-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
    text-decoration: underline;
}

.photo-action-btn:hover {
    background-color: var(--background-gray);
}

.photo-action-btn i {
    font-size: 16px;
}

.photo-tour-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.photo-category-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.photo-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Responsive Design for Modals */
@media (max-width: 768px) {

    .share-modal-content,
    .save-modal-content {
        width: 90vw;
        max-width: none;
        margin: 20px;
    }

    .modal-header {
        padding: 16px;
    }

    .share-options,
    .save-options {
        padding: 16px;
    }

    .photo-tour-nav {
        padding: 12px 16px;
    }

    .photo-tour-content {
        padding: 24px 16px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .photo-item img {
        height: 250px;
    }

    .photo-tour-actions {
        display: none;
    }
}

/* Loading States */
.modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--brand-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success States */
.success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #E8F5E8;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    color: #2E7D32;
    font-weight: 600;
    margin-top: 16px;
}

.success-message i {
    color: #4CAF50;
    font-size: 18px;
}

/* ====
= NOTIFICATION STYLES - MOBILE FIRST ===== */
.notification {
    position: fixed;
    z-index: 10001;
    font-family: var(--font-family);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);

    /* Mobile styles */
    bottom: 20px;
    left: 16px;
    right: 16px;
    padding: 16px 20px;
    font-size: 14px;
    transform: translateY(100%);
}

.notification.show {
    transform: translateY(0);
}

.notification i {
    font-size: 18px;
    flex-shrink: 0;
}

.notification span {
    flex-grow: 1;
    line-height: 1.4;
}

.notification.success {
    background-color: #4CAF50;
    color: white;
}

.notification.error {
    background-color: #f44336;
    color: white;
}

.notification.warning {
    background-color: #FF9800;
    color: white;
}

.notification.info {
    background-color: #2196F3;
    color: white;
}

/* Desktop notification styles */
@media (min-width: 768px) {
    .notification {
        bottom: auto;
        top: 100px;
        right: 20px;
        left: auto;
        max-width: 350px;
        transform: translateX(100%);
    }

    .notification.show {
        transform: translateX(0);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .notification {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .notification {
        transition: opacity 0.2s ease;
        transform: none !important;
        opacity: 0;
    }

    .notification.show {
        opacity: 1;
    }
}

/ *=====MOBILE IMPROVEMENTS FOR MODALS=====*/
/* Touch-friendly close buttons */
.close-share-modal,
.close-save-modal {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

/* Improved modal content spacing on mobile */
@media (max-width: 767px) {

    .share-options,
    .save-options {
        padding: 16px 20px 20px;
    }

    .modal-footer {
        padding: 16px 20px 20px;
    }

    /* Better touch targets */
    .share-option,
    .wishlist-item {
        min-height: 60px;
        padding: 16px 12px;
    }

    .create-new-list {
        min-height: 60px;
        padding: 16px 12px;
    }

    /* Improved button sizes */
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        font-size: 16px;
        padding: 12px 24px;
    }

    /* Better input fields */
    .new-list-input input {
        min-height: 48px;
        font-size: 16px;
        padding: 12px 16px;
    }
}

/* Safe area support for devices with notches */
@supports (padding: max(0px)) {
    .modal {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .notification {
        left: max(16px, env(safe-area-inset-left));
        right: max(16px, env(safe-area-inset-right));
        bottom: max(20px, env(safe-area-inset-bottom));
    }

    @media (min-width: 768px) {
        .notification {
            right: max(20px, env(safe-area-inset-right));
            left: auto;
            bottom: auto;
        }
    }
}

/* Focus styles for accessibility */
.modal button:focus,
.modal input:focus {
    outline: 2px solid var(--brand-color);
    outline-offset: 2px;
}

/* Loading states */
.modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--brand-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background-color: #1a1a1a;
        color: white;
    }

    .modal-header {
        border-bottom-color: #333;
    }

    .modal-header::before {
        background-color: #666;
    }

    .share-icon,
    .create-icon {
        background-color: #333;
    }

    .wishlist-item:hover,
    .create-new-list:hover {
        background-color: #2a2a2a;
    }

    .new-list-input {
        background-color: #2a2a2a;
        border-color: #444;
    }

    .new-list-input input {
        background-color: #333;
        border-color: #555;
        color: white;
    }
}

/* ====
= MODAL FIXES ===== */

/* Ensure modal backgrounds are solid white */
.share-modal-content,
.save-modal-content {
    background-color: #ffffff !important;
    border: none !important;
}

.modal-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.share-options,
.save-options {
    background-color: #ffffff;
}

.modal-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
}

/* Fix share option backgrounds */
.share-option:hover {
    background-color: #f7f7f7 !important;
}

.share-icon {
    background-color: #f7f7f7 !important;
}

.share-icon i {
    color: #222222 !important;
}

/* Fix wishlist item backgrounds */
.wishlist-item:hover {
    background-color: #f7f7f7 !important;
}

.wishlist-item.selected {
    background-color: #f7f7f7 !important;
    border-color: var(--text-dark) !important;
}

/* Fix create new list background */
.create-new-list:hover {
    background-color: #f7f7f7 !important;
}

.create-icon {
    background-color: #f0f0f0 !important;
}

.create-icon i {
    color: #717171 !important;
}

.new-list-input {
    background-color: #f7f7f7 !important;
}

.new-list-input input {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
}

/* Action buttons improvements */
.action-btn {
    background-color: #ffffff !important;
    border: 1px solid #dddddd !important;
    color: #222222 !important;
}

.action-btn:hover {
    background-color: #f7f7f7 !important;
    border-color: #222222 !important;
}

/* Booking card price alignment fixes */
.booking-card {
    background-color: #ffffff !important;
}

.price-item {
    line-height: 1.4;
}

.price-label {
    margin-right: 16px;
}

/* Mobile modal improvements */
@media (max-width: 767px) {
    .modal-content {
        background-color: #ffffff !important;
    }

    .action-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .booking-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .booking-rating {
        align-self: flex-end;
    }
}

/* =====
 TEXT COLOR FIXES FOR MODALS ===== */

/* Modal text colors */
.modal-content {
    color: #222222 !important;
}

.modal-header h2 {
    color: #222222 !important;
    font-weight: 600 !important;
}

/* Share modal text */
.share-text h4 {
    color: #222222 !important;
    font-weight: 600 !important;
}

.share-text p {
    color: #717171 !important;
}

/* Save modal text */
.wishlist-info h4 {
    color: #222222 !important;
    font-weight: 600 !important;
}

.wishlist-info p {
    color: #717171 !important;
}

.create-text h4 {
    color: #222222 !important;
    font-weight: 600 !important;
}

.create-text p {
    color: #717171 !important;
}

/* Button text colors */
.btn-primary {
    color: #ffffff !important;
    background: #FF385C !important;
}

.btn-secondary {
    color: #222222 !important;
    background: #ffffff !important;
    border: 1px solid #dddddd !important;
}

/* Close button colors */
.close-share-modal,
.close-save-modal {
    color: #222222 !important;
}

.close-share-modal i,
.close-save-modal i {
    color: #222222 !important;
}

/* Action button text colors */
.action-btn {
    color: #222222 !important;
    background-color: #ffffff !important;
    border: 1px solid #dddddd !important;
}

.action-btn span {
    color: #222222 !important;
}

.action-btn i {
    color: #222222 !important;
}

/* Input text colors */
.new-list-input input {
    color: #222222 !important;
    background-color: #ffffff !important;
}

.new-list-input input::placeholder {
    color: #717171 !important;
}

/* Share icon text colors */
.share-option[data-share-type="copy-link"] .share-icon i,
.share-option[data-share-type="email"] .share-icon i {
    color: #222222 !important;
}

/* Ensure all modal text is visible */
.modal * {
    color: inherit;
}

.modal h1,
.modal h2,
.modal h3,
.modal h4,
.modal h5,
.modal h6 {
    color: #222222 !important;
}

.modal p,
.modal span,
.modal div {
    color: #222222;
}

.modal .text-light,
.modal .price-label {
    color: #717171 !important;
}

/* =
==== SOCIAL MEDIA ICON COLORS ===== */

/* Facebook icon */
.share-option[data-share-type="facebook"] .share-icon {
    background-color: #1877F2 !important;
}

.share-option[data-share-type="facebook"] .share-icon i {
    color: #ffffff !important;
}

/* Twitter icon */
.share-option[data-share-type="twitter"] .share-icon {
    background-color: #1DA1F2 !important;
}

.share-option[data-share-type="twitter"] .share-icon i {
    color: #ffffff !important;
}

/* WhatsApp icon */
.share-option[data-share-type="whatsapp"] .share-icon {
    background-color: #25D366 !important;
}

.share-option[data-share-type="whatsapp"] .share-icon i {
    color: #ffffff !important;
}

/* Messenger icon */
.share-option[data-share-type="messenger"] .share-icon {
    background-color: #0084FF !important;
}

.share-option[data-share-type="messenger"] .share-icon i {
    color: #ffffff !important;
}

/* Email and copy link icons */
.share-option[data-share-type="email"] .share-icon,
.share-option[data-share-type="copy-link"] .share-icon {
    background-color: #f7f7f7 !important;
}

.share-option[data-share-type="email"] .share-icon i,
.share-option[data-share-type="copy-link"] .share-icon i {
    color: #222222 !important;
}

/* 
===== BOOKING CARD FIXES ===== */

/* Ensure proper spacing and alignment */
.booking-card {
    background-color: #ffffff !important;
    border: 1px solid #dddddd !important;
    padding: 24px !important;
}

/* Fix price breakdown alignment issues */
.price-breakdown .price-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    min-height: auto !important;
    width: 100% !important;
}

.price-breakdown .price-label {
    color: #222222 !important;
    text-decoration: underline !important;
    flex: 1 !important;
    text-align: left !important;
    margin-right: 16px !important;
    line-height: 1.4 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
    min-width: 0 !important;
}

.price-breakdown .price-value {
    color: #222222 !important;
    font-weight: 600 !important;
    text-align: right !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
}

/* Fix total section */
.price-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-weight: 600 !important;
    margin-top: 16px !important;
}

.price-total .total-label {
    color: #222222 !important;
    flex: 1 !important;
    text-align: left !important;
}

.price-total .total-amount {
    color: #222222 !important;
    font-weight: 600 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

/* Fix booking header */
.booking-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 24px !important;
    flex-wrap: nowrap !important;
}

.booking-price {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
}

.price-amount {
    color: #222222 !important;
    font-size: 22px !important;
    font-weight: 600 !important;
}

.price-period {
    color: #717171 !important;
    font-size: 16px !important;
}

.booking-rating {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 14px !important;
}

.rating-value {
    color: #222222 !important;
    font-weight: 600 !important;
}

.rating-reviews {
    color: #717171 !important;
    text-decoration: underline !important;
}

/* Mobile responsive fixes */
@media (max-width: 767px) {
    .booking-header {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }

    .booking-rating {
        align-self: flex-end !important;
    }

    .price-item {
        flex-wrap: nowrap !important;
        gap: 12px !important;
    }

    .price-label {
        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    .price-value {
        font-size: 15px !important;
    }
}

/* Ensure text doesn't break weirdly */
.booking-card * {
    box-sizing: border-box;
}

.booking-card .price-label {
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    hyphens: none !important;
    word-break: normal !important;
    white-space: normal !important;
}

/
/* ===== BOOKING CARD STYLES MOVED TO SEPARATE FILE ===== */
/* See booking-card-fix.css for clean booking card styles */
/* ===== 
DATE PICKER AND GUEST INPUT FIXES ===== */

/* Date and guest container */
.date-guest-container {
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
    display: block !important;
}

/* Date inputs container */
.date-inputs {
    display: flex !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* Individual date fields */
.date-field {
    flex: 1 !important;
    padding: 12px !important;
    display: block !important;
    position: relative !important;
}

.checkin-field {
    border-right: 1px solid var(--border-color) !important;
}

/* Date field labels */
.date-field label {
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    margin-bottom: 4px !important;
    color: var(--text-dark) !important;
}

/* Date field inputs */
.date-field input {
    border: none !important;
    background: none !important;
    width: 100% !important;
    font-size: 14px !important;
    color: var(--text-dark) !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: block !important;
}

.date-field input:focus {
    outline: none !important;
}

/* Guest input section */
.guest-input {
    padding: 12px !important;
    position: relative !important;
    display: block !important;
}

.guest-input label {
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    margin-bottom: 4px !important;
    color: var(--text-dark) !important;
}

.guest-input input {
    border: none !important;
    background: none !important;
    width: 100% !important;
    font-size: 14px !important;
    color: var(--text-dark) !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: block !important;
}

.guest-input input:focus {
    outline: none !important;
}

/* Chevron icon */
.guest-input i {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text-light) !important;
    font-size: 12px !important;
    pointer-events: none !important;
}

/* Reserve button */
.reserve-btn {
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 16px !important;
    background: var(--brand-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

/* Booking charge notice */
.booking-charge-notice {
    text-align: center !important;
    font-size: 14px !important;
    color: var(--text-light) !important;
    margin: 16px 0 24px 0 !important;
    display: block !important;
}

/* Mobile responsive for date picker */
@media (max-width: 767px) {
    .date-inputs {
        flex-direction: column !important;
    }

    .checkin-field {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
    }

    .date-field,
    .guest-input {
        padding: 16px !important;
    }
}

/* =
==== BRAND BUTTON STYLES WITH GLASS EFFECTS ===== */

/* Primary Button - Blue Gradient with Glass Effect */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-button);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    min-height: 48px;
}

.btn-primary::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.6s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--brand-medium) 0%, var(--brand-light) 50%, #66B3FF 100%);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-button);
}

/* Secondary Button - Glass Effect */
.btn-secondary {
    background: var(--background-glass);
    color: var(--brand-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    min-height: 48px;
}

.btn-secondary:hover {
    background: var(--gradient-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 82, 161, 0.2);
    border-color: var(--brand-light);
}

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

/* Accent Button - Orange Gradient */
.btn-accent {
    background: var(--gradient-accent);
    color: var(--text-white);
    border: 1px solid rgba(255, 123, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    min-height: 48px;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 123, 0, 0.4);
    background: linear-gradient(135deg, #FF9533 0%, #FFB366 100%);
}

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

/* Glass Card Effect */
.glass-card {
    background: var(--background-glass-strong);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Action Buttons with Glass Effect */
.action-btn {
    background: var(--background-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.action-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 82, 161, 0.2);
    border-color: var(--brand-light);
    color: var(--brand-primary);
}

.action-btn i {
    font-size: 16px;
    transition: color var(--transition-fast);
}

.action-btn:hover i {
    color: var(--brand-primary);
}

/* Search Button with Brand Colors */
.search-btn {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 14px 16px;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-button);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--brand-medium) 0%, var(--brand-light) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

/* Become Host Button */
.become-host-btn {
    background: var(--background-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    color: var(--text-dark);
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.become-host-btn:hover {
    background: var(--gradient-hover);
    color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 82, 161, 0.15);
}

/* User Menu Button with Glass Effect */
.user-menu-btn {
    background: var(--background-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 22px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-menu-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 82, 161, 0.2);
    border-color: var(--brand-light);
}

/* Reserve Button Special Styling */
.reserve-btn {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-button);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    min-height: 52px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.reserve-btn::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.8s ease;
}

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

.reserve-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--brand-medium) 0%, var(--brand-light) 50%, #66B3FF 100%);
}

.reserve-btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-button);
}

/* Loading State for Buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.btn-group .btn-primary,
.btn-group .btn-secondary,
.btn-group .btn-accent {
    flex: 1;
}

/* Responsive Button Styles */
@media (max-width: 768px) {

    .btn-primary,
    .btn-secondary,
    .btn-accent {
        padding: 16px 20px;
        font-size: 16px;
        min-height: 52px;
    }

    .action-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn-primary,
    .btn-group .btn-secondary,
    .btn-group .btn-accent {
        width: 100%;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {

    .btn-primary,
    .btn-accent {
        border: 2px solid currentColor;
    }

    .btn-secondary,
    .action-btn {
        border: 2px solid var(--brand-primary);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .btn-primary,
    .btn-secondary,
    .btn-accent,
    .action-btn,
    .reserve-btn {
        transition: none;
        transform: none !important;
    }

    .btn-primary::before,
    .reserve-btn::before {
        display: none;
    }
}

/* =
==== GLASS EFFECTS FOR KEY ELEMENTS ===== */

/* Header with Glass Effect */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Search Bar with Glass Effect */
.search-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-bar:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 30px rgba(0, 82, 161, 0.15);
    border-color: rgba(0, 82, 161, 0.2);
}

/* Small Search Bar Glass Effect */
.small-search-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Space Cards with Glass Hover Effect */
.space-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 82, 161, 0.15);
}

.space-card:hover .space-image-container {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Booking Card Glass Enhancement */
.booking-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 82, 161, 0.15) !important;
}

/* Modal Glass Effects */
.modal {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 20px 60px rgba(0, 82, 161, 0.3) !important;
}

/* Photo Gallery Overlay Glass Effect */
.view-all-photos-overlay {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.view-all-photos-overlay:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 82, 161, 0.2) !important;
}

/* Category Filter Items - Using original styles (no glass effects) */

/* Notification Glass Effect */
.notification {
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.notification.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(76, 175, 80, 0.8) 100%) !important;
}

.notification.info {
    background: linear-gradient(135deg, rgba(0, 82, 161, 0.9) 0%, rgba(51, 153, 255, 0.8) 100%) !important;
}

.notification.warning {
    background: linear-gradient(135deg, rgba(255, 123, 0, 0.9) 0%, rgba(255, 149, 51, 0.8) 100%) !important;
}

.notification.error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9) 0%, rgba(244, 67, 54, 0.8) 100%) !important;
}

/* Footer Glass Effect */
.footer {
    background: rgba(247, 247, 247, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Accent Elements */
.rating i,
.space-rating i,
.reviews-header i {
    color: var(--brand-primary) !important;
}

.brand-accent {
    color: var(--brand-accent) !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Hover Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Effect for Important Elements */
@keyframes pulse-brand {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 82, 161, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 82, 161, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 82, 161, 0);
    }
}

.pulse-brand {
    animation: pulse-brand 2s infinite;
}

/* Glassmorphism Utility Classes */
.glass-light {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-medium {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Brand Color Utilities */
.bg-brand-primary {
    background-color: var(--brand-primary);
}

.bg-brand-medium {
    background-color: var(--brand-medium);
}

.bg-brand-light {
    background-color: var(--brand-light);
}

.bg-brand-accent {
    background-color: var(--brand-accent);
}

.text-brand-primary {
    color: var(--brand-primary);
}

.text-brand-medium {
    color: var(--brand-medium);
}

.text-brand-light {
    color: var(--brand-light);
}

.text-brand-accent {
    color: var(--brand-accent);
}

.border-brand-primary {
    border-color: var(--brand-primary);
}

.border-brand-medium {
    border-color: var(--brand-medium);
}

.border-brand-light {
    border-color: var(--brand-light);
}

.border-brand-accent {
    border-color: var(--brand-accent);
}

/* ==
=== ORANGE GRADIENT FOR STARS AND HEARTS ===== */

/* Star Icons with Orange Gradient */
.rating i,
.space-rating i,
.reviews-header i,
.booking-rating i,
.review-rating i,
.property-meta .rating i {
    background: linear-gradient(135deg, #FF7B00 0%, #FF9533 50%, #FFB366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FF7B00;
    /* Fallback for browsers that don't support background-clip */
    filter: drop-shadow(0 1px 2px rgba(255, 123, 0, 0.3));
    transition: all 0.3s ease;
}

/* Star hover effects */
.rating:hover i,
.space-rating:hover i,
.booking-rating:hover i {
    background: linear-gradient(135deg, #FF9533 0%, #FFB366 50%, #FFCC99 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255, 123, 0, 0.4));
    transform: scale(1.1);
}

/* Heart Icons with Orange Gradient */
.favorite-btn,
.save-btn i,
.photo-action-btn i[class*="heart"] {
    background: linear-gradient(135deg, #FF7B00 0%, #FF9533 50%, #FFB366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FF7B00;
    /* Fallback */
    filter: drop-shadow(0 1px 2px rgba(255, 123, 0, 0.3));
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Heart hover and active states */
.favorite-btn:hover,
.save-btn:hover i,
.photo-action-btn:hover i[class*="heart"] {
    background: linear-gradient(135deg, #FF9533 0%, #FFB366 50%, #FFCC99 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255, 123, 0, 0.4));
    transform: scale(1.15);
}

/* Filled heart state (when saved) */
.favorite-btn.active,
.save-btn.active i,
.fas.fa-heart {
    background: linear-gradient(135deg, #FF7B00 0%, #FF4500 50%, #FF6B35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FF7B00;
    /* Fallback */
    filter: drop-shadow(0 2px 6px rgba(255, 123, 0, 0.5));
    animation: heartBeat 0.6s ease-in-out;
}

/* Heart beat animation */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* Star rating in reviews section */
.reviews-section .rating i,
.user-review-card .review-rating i {
    background: linear-gradient(135deg, #FF7B00 0%, #FF9533 50%, #FFB366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FF7B00;
    filter: drop-shadow(0 1px 2px rgba(255, 123, 0, 0.3));
    margin-right: 2px;
}

/* Rating bars with orange accent */
.rating-bar .bar {
    background: linear-gradient(90deg, #FF7B00 0%, #FF9533 50%, #FFB366 100%);
    box-shadow: 0 1px 3px rgba(255, 123, 0, 0.3);
}

/* Space card rating overlay */
.space-rating {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.space-rating i {
    color: #FF7B00 !important;
    background: none !important;
    -webkit-text-fill-color: #FF7B00 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Booking card rating star */
.booking-card .booking-rating i {
    background: linear-gradient(135deg, #FF7B00 0%, #FF9533 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FF7B00;
    filter: drop-shadow(0 1px 2px rgba(255, 123, 0, 0.3));
}

/* Property meta rating stars */
.property-meta .rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-meta .rating i {
    font-size: 14px;
    background: linear-gradient(135deg, #FF7B00 0%, #FF9533 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FF7B00;
}

/* Interactive star rating (for future use) */
.star-rating {
    display: flex;
    gap: 2px;
}

.star-rating i {
    background: linear-gradient(135deg, #E0E0E0 0%, #CCCCCC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #E0E0E0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating i:hover,
.star-rating i.active {
    background: linear-gradient(135deg, #FF7B00 0%, #FF9533 50%, #FFB366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FF7B00;
    filter: drop-shadow(0 1px 2px rgba(255, 123, 0, 0.3));
    transform: scale(1.1);
}

/* Wishlist heart in save modal */
.wishlist-item .fas.fa-heart,
.wishlist-item.selected .far.fa-heart {
    background: linear-gradient(135deg, #FF7B00 0%, #FF9533 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FF7B00;
    filter: drop-shadow(0 1px 2px rgba(255, 123, 0, 0.3));
}

/* Superhost badge with orange accent */
.superhost-badge i {
    background: linear-gradient(135deg, #FF7B00 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FF7B00;
    filter: drop-shadow(0 1px 2px rgba(255, 123, 0, 0.3));
}

/* Pulse effect for hearts and stars */
.pulse-orange {
    animation: pulseOrange 2s infinite;
}

@keyframes pulseOrange {
    0% {
        filter: drop-shadow(0 0 0 rgba(255, 123, 0, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(255, 123, 0, 0.6));
    }

    100% {
        filter: drop-shadow(0 0 0 rgba(255, 123, 0, 0.4));
    }
}

/* Glow effect for special occasions */
.glow-orange {
    filter: drop-shadow(0 0 8px rgba(255, 123, 0, 0.6));
    animation: glowOrange 1.5s ease-in-out infinite alternate;
}

@keyframes glowOrange {
    from {
        filter: drop-shadow(0 0 8px rgba(255, 123, 0, 0.6));
    }

    to {
        filter: drop-shadow(0 0 15px rgba(255, 123, 0, 0.8));
    }
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {

    .rating i,
    .space-rating i,
    .reviews-header i,
    .booking-rating i,
    .review-rating i,
    .property-meta .rating i,
    .favorite-btn,
    .save-btn i {
        color: #FF7B00 !important;
        background: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .rating i,
    .space-rating i,
    .reviews-header i,
    .booking-rating i,
    .review-rating i,
    .property-meta .rating i,
    .favorite-btn,
    .save-btn i {
        color: #FF4500 !important;
        background: none !important;
        -webkit-text-fill-color: #FF4500 !important;
        filter: none !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .rating i,
    .favorite-btn,
    .save-btn i {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .pulse-orange,
    .glow-orange {
        animation: none !important;
        filter: drop-shadow(0 1px 2px rgba(255, 123, 0, 0.3)) !important;
    }
}

/* =====
 AIRBNB-STYLE INDEX IMPROVEMENTS ===== */

/* Header Navigation Tabs */
.header-nav {
    display: flex;
    justify-content: center;
    flex: 1;
}

.nav-tabs {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-normal);
    position: relative;
}

.nav-tab.active {
    color: var(--text-dark);
    border-bottom-color: var(--text-dark);
}

.nav-tab:hover {
    color: var(--text-dark);
    border-bottom-color: var(--border-color);
}

.nav-tab i {
    font-size: 16px;
}

.nav-badge {
    background: var(--brand-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Language Button */
.language-btn {
    background: none;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.language-btn:hover {
    background-color: var(--background-gray);
}

.language-btn i {
    font-size: 16px;
    color: var(--text-dark);
}

/* Search Suggestion Banner */
.search-suggestion-banner {
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.suggestion-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: opacity var(--transition-normal);
}

.suggestion-content:hover {
    opacity: 0.8;
}

.suggestion-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.suggestion-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suggestion-text span:first-child {
    font-size: 14px;
    color: var(--text-dark);
}

.suggestion-date {
    font-size: 12px;
    color: var(--text-light);
}

.suggestion-content i {
    color: var(--text-light);
    font-size: 12px;
}

/* Category Filters Improvements */
.category-filters {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    align-items: center;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.filters-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: all var(--transition-normal);
    white-space: nowrap;
    margin-left: auto;
}

.filters-btn:hover {
    border-color: var(--text-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filters-btn i {
    font-size: 14px;
}

/* Location Header */
.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.location-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.show-map-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--background-light);
    border: 1px solid var(--text-dark);
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: all var(--transition-normal);
}

.show-map-btn:hover {
    background: var(--text-dark);
    color: var(--background-light);
}

.show-map-btn i {
    font-size: 14px;
}

/* Space Cards Improvements */
.space-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-normal);
}

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

.space-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.space-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

/* Favorite Button with Orange Gradient */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-normal);
    z-index: 2;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.active {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255, 123, 0, 0.5));
}

/* Space Info */
.space-info {
    padding: 4px 0;
}

.space-location {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.2;
}

.space-title {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.space-dates {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 8px;
}

.space-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 8px;
}

.space-price .price-amount {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.space-price .price-period {
    color: var(--text-dark);
    font-size: 15px;
}

/* Space Rating Overlay */
.space-rating {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.space-rating i {
    color: #FF7B00 !important;
    font-size: 12px;
}

/* Continue Exploring Section */
.continue-exploring {
    margin-top: 80px;
    margin-bottom: 40px;
}

.continue-exploring h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.exploring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Price Notice */
.price-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    margin-top: 40px;
    color: var(--text-light);
    font-size: 14px;
}

.price-notice i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FF7B00;
    font-size: 16px;
}

/* Favorite Labels */
.favorite-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-label.guest-favorite {
    background: var(--gradient-accent);
    color: white;
    border: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .nav-tabs {
        display: none;
    }

    .location-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

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

    .category-filters {
        padding: 16px;
        gap: 24px;
    }

    .filters-btn {
        margin-left: 0;
        order: -1;
    }

    .suggestion-content {
        padding: 0 16px;
    }

    .spaces-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .spaces-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-tabs {
        gap: 24px;
    }
}

/* ===
== IMPROVED SPACE CARDS - AIRBNB STYLE ===== */

/* Enhanced Space Card */
.space-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.6s ease forwards;
    position: relative;
}

.space-card:hover {
    transform: translateY(-2px);
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Container Improvements */
.space-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--background-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.space-card:hover .space-image-container {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image with Loading State */
.space-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.space-image.loaded {
    background: none;
}

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

/* Image Navigation Dots */
.image-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.space-card:hover .image-dots {
    opacity: 1;
}

.image-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.image-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Image Navigation Arrows */
.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.space-card:hover .image-nav {
    opacity: 1;
}

.image-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.image-nav.prev {
    left: 12px;
}

.image-nav.next {
    right: 12px;
}

.image-nav i {
    font-size: 12px;
    color: var(--text-dark);
}

/* Enhanced Favorite Button - FIXED */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 25;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.favorite-btn.active {
    background: linear-gradient(135deg, #FF7B00 0%, #FF9533 100%);
    color: white;
    border-color: rgba(255, 123, 0, 0.5);
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.4);
    animation: heartPulse 0.6s ease;
}

.favorite-btn.active:hover {
    background: linear-gradient(135deg, #FF9533 0%, #FFB366 100%);
    transform: scale(1.15);
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Enhanced Rating Overlay */
.space-rating {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.space-card:hover .space-rating {
    background: rgba(0, 0, 0, 0.95);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.space-rating i {
    color: #FF7B00 !important;
    font-size: 11px;
    filter: drop-shadow(0 1px 2px rgba(255, 123, 0, 0.6));
    text-shadow: 0 0 4px rgba(255, 123, 0, 0.4);
}

/* Special Labels */
.space-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    color: var(--text-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.space-label.guest-favorite {
    background: var(--gradient-accent);
    color: white;
}

.space-label.superhost {
    background: var(--gradient-primary);
    color: white;
}

/* Enhanced Space Info */
.space-info {
    padding: 8px 4px 4px;
}

.space-location {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.space-title {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 2px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.space-dates {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.space-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px;
}

.space-price .price-amount {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.space-price .price-period {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 400;
}

/* Skeleton Loading State */
.space-card.loading .space-image-container {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.space-card.loading .space-info {
    opacity: 0.6;
}

/* Image Quality Indicators */
.image-quality-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.space-card:hover .image-quality-badge {
    opacity: 1;
}

/* Verified Host Badge */
.verified-host {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-primary);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.space-card:hover .verified-host {
    opacity: 1;
}

.verified-host i {
    font-size: 8px;
    color: var(--brand-primary);
}

/* Instant Book Badge */
.instant-book {
    position: absolute;
    top: 12px;
    right: 50px;
    background: var(--brand-primary);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: all var(--transition-normal);
    transform: translateY(-5px);
}

.space-card:hover .instant-book {
    opacity: 1;
    transform: translateY(0);
}

/* Price Highlight Animation */
.space-price .price-amount {
    position: relative;
    overflow: hidden;
}

.space-price .price-amount::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.space-card:hover .space-price .price-amount::after {
    left: 100%;
}

/* Enhanced Grid Layout */
.spaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px 24px;
    padding: 0 4px;
}

/* Staggered Animation */
.space-card:nth-child(1) {
    animation-delay: 0.1s;
}

.space-card:nth-child(2) {
    animation-delay: 0.2s;
}

.space-card:nth-child(3) {
    animation-delay: 0.3s;
}

.space-card:nth-child(4) {
    animation-delay: 0.4s;
}

.space-card:nth-child(5) {
    animation-delay: 0.5s;
}

.space-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .spaces-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 32px 16px;
        padding: 0 2px;
    }

    .image-nav {
        width: 32px;
        height: 32px;
    }

    .image-nav i {
        font-size: 14px;
    }

    .favorite-btn {
        font-size: 24px;
    }

    .space-info {
        padding: 12px 4px 4px;
    }
}

/* Tablet Optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    .spaces-grid {
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
        gap: 36px 20px;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .space-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {

    .space-card,
    .space-image,
    .image-nav,
    .favorite-btn {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .space-card:hover {
        transform: none !important;
    }
}

/* Focus States for Keyboard Navigation */
.space-card:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 12px;
}

.favorite-btn:focus-visible,
.image-nav:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .space-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .image-nav,
    .favorite-btn,
    .image-dots {
        display: none !important;
    }
}

/*
 ===== VIP/PREMIUM CONTENT SYSTEM ===== */

/* VIP/Premium Card Overlay */
.vip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.vip-overlay:hover {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* VIP Badge with Brand Orange */
.vip-badge {
    background: linear-gradient(135deg, #FF7B00 0%, #FF9533 50%, #FFB366 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: vipOrangeGlow 2s ease-in-out infinite alternate;
}

@keyframes vipOrangeGlow {
    from {
        box-shadow: 0 4px 15px rgba(255, 123, 0, 0.4);
    }

    to {
        box-shadow: 0 6px 25px rgba(255, 123, 0, 0.6);
    }
}

.vip-badge.platinum {
    background: linear-gradient(135deg, #E5E4E2 0%, #C0C0C0 50%, #A8A8A8 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.vip-badge.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.vip-badge.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

/* VIP Message */
.vip-message {
    color: white;
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
}

.vip-message h3 {
    font-size: 18px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.vip-message p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

/* VIP Unlock Button */
.vip-unlock-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 82, 161, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.vip-unlock-btn::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.6s ease;
}

.vip-unlock-btn:hover::before {
    left: 100%;
}

.vip-unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 82, 161, 0.4);
}

/* Watermark Effect */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 48px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 8px;
    pointer-events: none;
    z-index: 5;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.watermark.vip {
    color: rgba(255, 123, 0, 0.15);
    text-shadow: 0 0 20px rgba(255, 123, 0, 0.3);
}

.watermark.premium {
    color: rgba(0, 82, 161, 0.15);
    text-shadow: 0 0 20px rgba(0, 82, 161, 0.3);
}

/* VIP Card Special Effects */
.space-card.vip {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #FFD700, #FFA500, #FF8C00) border-box;
}

.space-card.vip::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.7;
    animation: vipBorderGlow 3s ease-in-out infinite alternate;
}

@keyframes vipBorderGlow {
    from {
        opacity: 0.7;
        filter: blur(0px);
    }

    to {
        opacity: 1;
        filter: blur(2px);
    }
}

.space-card.premium {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #0052A1, #0077CC, #3399FF) border-box;
}

.space-card.premium::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #0052A1, #0077CC, #3399FF);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.6;
    animation: premiumBorderGlow 3s ease-in-out infinite alternate;
}

@keyframes premiumBorderGlow {
    from {
        opacity: 0.6;
        filter: blur(0px);
    }

    to {
        opacity: 0.9;
        filter: blur(2px);
    }
}

/* VIP Modal */
.vip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
}

.vip-modal.active {
    display: flex;
}

.vip-modal-content {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.vip-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 215, 0, 0.1) 50%,
            transparent 70%);
    animation: shimmerEffect 3s linear infinite;
    pointer-events: none;
}

@keyframes shimmerEffect {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.vip-modal h2 {
    color: #000;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vip-modal p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.vip-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.vip-plan {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.vip-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
}

.vip-plan.premium {
    border-color: rgba(0, 82, 161, 0.3);
}

.vip-plan.premium:hover {
    box-shadow: 0 10px 30px rgba(0, 82, 161, 0.3);
    border-color: rgba(0, 82, 161, 0.6);
}

.vip-plan h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
}

.vip-plan .price {
    font-size: 24px;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 12px;
}

.vip-plan.premium .price {
    color: #0052A1;
}

.vip-plan ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.vip-plan li {
    padding: 4px 0;
    font-size: 14px;
    color: #555;
}

.vip-plan li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
    margin-right: 8px;
}

.close-vip-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color var(--transition-fast);
}

.close-vip-modal:hover {
    color: #000;
}

/* Mobile VIP Styles */
@media (max-width: 768px) {
    .watermark {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .vip-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .vip-plans {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .vip-message h3 {
        font-size: 16px;
    }

    .vip-message p {
        font-size: 13px;
    }
}

/* VIP Status Indicators */
.user-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1000;
    display: none;
}

.user-status.vip {
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.user-status.premium {
    color: #0052A1;
    border-color: rgba(0, 82, 161, 0.5);
    box-shadow: 0 4px 15px rgba(0, 82, 161, 0.2);
}

.user-status.active {
    display: block;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 
===== VIP BADGE AND IMAGE ERROR HANDLING ===== */

/* VIP Badge with Glass Effect - Orange Brand - FIXED */
.vip-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, rgba(255, 123, 0, 0.9) 0%, rgba(255, 149, 51, 0.9) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    color: white;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.4);
    z-index: 20;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 123, 0, 0.6);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.vip-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.space-card:hover .vip-badge {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, rgba(255, 123, 0, 1) 0%, rgba(255, 149, 51, 1) 100%);
    box-shadow: 0 8px 25px rgba(255, 123, 0, 0.6);
    border-color: rgba(255, 123, 0, 0.8);
}

.space-card:hover .vip-badge::before {
    left: 100%;
}

.vip-badge i {
    font-size: 10px;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    z-index: 2;
    position: relative;
}

/* VIP Space Enhancements - Clean Orange Border */
.space-card.vip-space {
    position: relative;
    border: 2px solid #FF7B00;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 123, 0, 0.15);
    transition: all 0.4s ease;
}

.space-card.vip-space::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #FF7B00 0%, #FF9533 100%);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
    filter: blur(1px);
}

.space-card.vip-space:hover::before {
    opacity: 0.3;
    filter: blur(2px);
}

.space-card.vip-space::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%,
            rgba(255, 123, 0, 0.05) 100%);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.space-card.vip-space:hover::after {
    opacity: 1;
}

@keyframes vipGlassGlow {
    from {
        opacity: 0.3;
        filter: blur(2px);
        transform: scale(1);
    }

    to {
        opacity: 0.5;
        filter: blur(4px);
        transform: scale(1.01);
    }
}

/* Image Loading States */
.space-image {
    background-color: #f0f0f0;
    background-image:
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
        linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: imageLoading 1s linear infinite;
}

.space-image.loaded {
    background: none;
    animation: none;
}

@keyframes imageLoading {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }

    100% {
        background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
    }
}

/* Error State for Images */
.space-image[data-error-handled="true"] {
    filter: grayscale(20%) brightness(0.9);
    border: 2px solid rgba(255, 0, 0, 0.1);
}

/* Image Quality Improvements */
.space-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimizeQuality;
}

/* Lazy Loading Placeholder */
.space-image[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmerPlaceholder 1.5s infinite;
}

.space-image[loading="lazy"].loaded {
    animation: none;
    background: none;
}

@keyframes shimmerPlaceholder {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Enhanced Loading Card State */
.space-card.loading {
    opacity: 0.8;
}

.space-card.loading .space-info {
    opacity: 0.6;
}

.space-card.loading .space-image-container {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: cardShimmer 1.5s infinite;
}

@keyframes cardShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Image Container Improvements */
.space-image-container {
    background-color: #f8f8f8;
    position: relative;
    overflow: hidden;
}

.space-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.space-card:hover .space-image-container::before {
    opacity: 1;
}

/* Fallback for very old browsers */
@supports not (object-fit: cover) {
    .space-image {
        width: 100%;
        height: 100%;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .space-image {
        filter: contrast(1.2);
    }

    .vip-badge {
        background: #FFD700;
        color: #000;
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .space-image,
    .vip-badge,
    .space-image-container::before {
        animation: none !important;
        transition: none !important;
    }

    .space-card.loading .space-image-container {
        animation: none !important;
        background: #f0f0f0;
    }
}

/* ===== C
AROUSEL IMAGE FIX ===== */

/* Ensure carousel images are properly displayed */
.space-image-container .space-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: #f0f0f0;
}

.space-image-container .space-image.active {
    opacity: 1;
    z-index: 2;
}

.space-image-container .space-image.loaded {
    background-color: transparent;
}

/* Override any conflicting styles */
.space-card .space-image-container .space-image {
    display: block !important;
    visibility: visible !important;
}

/* Ensure first image shows immediately */
.space-image-container .space-image:first-child {
    opacity: 1;
}

.space-image-container .space-image:first-child.active {
    opacity: 1;
    z-index: 2;
}

/* Loading state for carousel */
.space-image-container.loading .space-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmerPlaceholder 1.5s infinite;
}

.space-image-container.loading .space-image.loaded {
    animation: none;
    background: none;
}

/*
 ===== RATING OVERLAY FIX ===== */

/* Ensure rating overlay is always visible */
.space-image-container .space-rating {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 15 !important;
    transition: all var(--transition-normal);
}

.space-image-container .space-rating i {
    background: linear-gradient(135deg, #FF7B00 0%, #FF9533 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FF7B00;
    font-size: 10px;
    filter: drop-shadow(0 0 2px rgba(255, 123, 0, 0.5));
}

/* Ensure all overlays have proper z-index */
.space-image-container .favorite-btn {
    z-index: 16 !important;
}

.space-image-container .vip-badge {
    z-index: 16 !important;
}

.space-image-container .space-label {
    z-index: 13 !important;
}

.space-image-container .instant-book {
    z-index: 12 !important;
}

.space-image-container .verified-host {
    z-index: 11 !important;
}

.space-image-container .image-quality-badge {
    z-index: 10 !important;
}

/* Image navigation should be below overlays but above images */
.space-image-container .image-nav {
    z-index: 8 !important;
}

.space-image-container .image-dots {
    z-index: 9 !important;
}

/* =
==== SPACE INFO HOVER FIXES ===== */

/* Remove any unwanted borders or outlines */
.space-info,
.space-info *,
.space-location,
.space-title,
.space-dates,
.space-price {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure clean hover states */
.space-card:hover .space-info,
.space-card:hover .space-location,
.space-card:hover .space-title,
.space-card:hover .space-dates,
.space-card:hover .space-price {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Clean focus states */
.space-card:focus,
.space-card:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 12px;
    border: none !important;
}

/* Remove any default button/link styling */
.space-card,
.space-card * {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Ensure space-info has clean styling */
.space-info {
    padding: 8px 4px 4px;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

/* Clean text styling */
.space-location,
.space-title,
.space-dates {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    text-decoration: none;
}

/* Price styling */
.space-price {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

.space-price .price-amount,
.space-price .price-period {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

/* ===== VIP PRICE ENHANCEMENTS ===== */

/* VIP Space Price Styling - Clean */
.space-card.vip-space .space-price {
    margin-top: 12px;
}

.space-card.vip-space .space-price .price-amount {
    color: #FF7B00;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(255, 123, 0, 0.3);
}

.space-card.vip-space .space-price .price-period {
    color: #FF9533;
    font-weight: 600;
}

/* VIP Space Info Enhancements */
.space-card.vip-space .space-location {
    color: #FF7B00;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 123, 0, 0.2);
}

/* VIP Rating Enhancement - Keep black background */
.space-card.vip-space .space-rating {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 123, 0, 0.4);
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.2);
}

/* Fix Z-Index Issues */
.space-image-container {
    position: relative;
    z-index: 1;
}

.space-image-container .favorite-btn {
    z-index: 30 !important;
}

.space-image-container .vip-badge {
    z-index: 25 !important;
}

.space-image-container .space-rating {
    z-index: 20 !important;
}

/* Ensure VIP elements are always visible */
.vip-badge,
.favorite-btn {
    pointer-events: auto;
    user-select: none;
}

/* VIP Animation Keyframes */
@keyframes vipGlassGlow {
    0% {
        opacity: 0.3;
        filter: blur(3px);
    }

    50% {
        opacity: 0.5;
        filter: blur(4px);
    }

    100% {
        opacity: 0.4;
        filter: blur(3px);
    }
}

/* VIP Pulse Animation for Badge */
@keyframes vipPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 123, 0, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 123, 0, 0.6);
    }
}

.vip-badge {
    animation: vipPulse 3s ease-in-out infinite;
}

/* Hover state for VIP cards */
.space-card.vip-space:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 123, 0, 0.2);
    border-color: #FF9533;
}

.space-card.vip-space:hover .vip-badge {
    animation-duration: 1.5s;
}

/* ==
=== FINAL FIXES FOR CARDS ===== */

/* Ensure proper stacking order */
.space-image-container {
    position: relative;
    isolation: isolate;
}

/* Fix favorite button positioning issues */
.favorite-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 30 !important;
    pointer-events: auto !important;
}

/* Fix VIP badge positioning */
.vip-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 25 !important;
    pointer-events: none !important;
}

/* Ensure rating badge is visible and centered */
.space-rating {
    position: absolute !important;
    top: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 20 !important;
    background: rgba(0, 0, 0, 0.85) !important;
}

/* Price styling improvements */
.space-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 8px;
}

.space-price .price-amount {
    font-weight: 800;
    color: #222222;
}

.space-price .price-period {
    font-weight: 400;
    color: #717171;
}

/* VIP price enhancements */
.space-card.vip-space .space-price .price-amount {
    background: linear-gradient(135deg, #FF7B00 0%, #FF9533 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FF7B00;
    /* Fallback */
    filter: drop-shadow(0 1px 2px rgba(255, 123, 0, 0.3));
}

/* Prevent layout shifts */
.space-card {
    contain: layout style;
}

/* Smooth transitions for all interactive elements */
.favorite-btn,
.vip-badge,
.space-rating {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility improvements */
.favorite-btn:focus-visible {
    outline: 2px solid #0052A1;
    outline-offset: 2px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .favorite-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }

    .vip-badge {
        font-size: 9px !important;
        padding: 6px 10px !important;
    }

    .space-rating {
        font-size: 11px !important;
        padding: 3px 6px !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .favorite-btn {
        background: rgba(0, 0, 0, 0.8) !important;
        border: 2px solid white !important;
    }

    .vip-badge {
        background: #FF7B00 !important;
        border: 2px solid white !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .favorite-btn,
    .vip-badge,
    .space-rating,
    .space-card.vip-space::before {
        animation: none !important;
        transition: none !important;
    }
}