/* Villa Carousel Styles */
.villa-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 25px;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #333;
    padding: 5px 8px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(44, 90, 160, 0.1);
    overflow: visible;
}

.navbar {
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-logo a {
    text-decoration: none;
}

.nav-logo h2 {
    color: #2c5aa0;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(44, 90, 160, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2c5aa0;
    background: rgba(44, 90, 160, 0.08);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #2c5aa0;
    background: rgba(44, 90, 160, 0.12);
    font-weight: 600;
}

.admin-link {
    background: #2c5aa0;
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.admin-link:hover {
    background: #1e3f73 !important;
    color: white !important;
}

/* Auth Buttons Styles */
.auth-nav-item {
    display: flex;
    align-items: center;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.login-btn {
    background: transparent;
    color: #2c5aa0 !important;
    padding: 8px 16px;
    border: 2px solid #2c5aa0;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #2c5aa0 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.signup-btn {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.2);
}

.signup-btn:hover {
    background: linear-gradient(135deg, #1e3f73 0%, #2c5aa0 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(44, 90, 160, 0.4);
}

/* User Profile Styles */
.user-profile {
    display: none; /* Hidden by default */
    align-items: center;
}

.user-menu {
    position: relative;
    z-index: 10000;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.25);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

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

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

.user-menu-btn:hover {
    background: linear-gradient(135deg, #1e3f73 0%, #2c5aa0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.35);
}

.user-menu-btn:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

.user-menu-btn .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.user-menu.active .user-menu-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(44, 90, 160, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    overflow: hidden;
    z-index: 10001;
    border: 1px solid rgba(44, 90, 160, 0.15);
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown.show {
    display: block;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 24px;
    width: 16px;
    height: 8px;
    background: rgba(255, 255, 255, 0.98);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-left: 1px solid rgba(44, 90, 160, 0.15);
    border-right: 1px solid rgba(44, 90, 160, 0.15);
}

.user-dropdown-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(44, 90, 160, 0.1);
}

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

.user-dropdown-header .user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-dropdown-header .user-details h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #2c5aa0;
    font-weight: 600;
}

.user-dropdown-header .user-details p {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: #666;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-dropdown a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(44, 90, 160, 0.1), rgba(44, 90, 160, 0.05));
    transition: width 0.3s ease;
}

.user-dropdown a:hover::before {
    width: 100%;
}

.user-dropdown a:hover {
    color: #2c5aa0;
    transform: translateX(4px);
}

.user-dropdown a i {
    width: 18px;
    color: #666;
    transition: all 0.3s ease;
    z-index: 1;
}

.user-dropdown a:hover i {
    color: #2c5aa0;
    transform: scale(1.1);
}

.user-dropdown a span {
    z-index: 1;
    font-weight: 500;
}

.user-dropdown .logout-link {
    border-top: 1px solid rgba(220, 53, 69, 0.1);
    color: #dc3545;
    margin-top: 4px;
}

.user-dropdown .logout-link:hover {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.05), rgba(220, 53, 69, 0.02));
    color: #c82333;
}

.user-dropdown .logout-link::before {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
}

.user-dropdown .logout-link i {
    color: #dc3545;
}

.user-dropdown .logout-link:hover i {
    color: #c82333;
}

/* Profile Modal Styles */
.profile-modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

.profile-modal-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.profile-email {
    font-size: 0.9rem;
    opacity: 0.9;
}

.profile-modal-content {
    padding: 24px;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-info-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info-item span {
    font-size: 1rem;
    color: #333;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.role-badge {
    display: inline-block !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
}

.role-badge.user {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
}

.role-badge.admin {
    background: linear-gradient(135deg, #dc3545, #fd7e14) !important;
    color: white !important;
}

.profile-modal-footer {
    padding: 20px 24px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e9ecef;
}

/* Bookings Modal Styles */
.bookings-modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 95%;
    max-height: 85vh;
    overflow: hidden;
}

.bookings-modal-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bookings-modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bookings-modal-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 24px;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
}

.booking-header {
    background: #f8f9fa;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.booking-id {
    font-weight: 600;
    color: #2c5aa0;
}

.booking-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-confirmed {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.status-pending {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.booking-details {
    padding: 20px;
}

.booking-details h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.1rem;
}

.booking-dates {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.date-info i {
    color: #2c5aa0;
}

.booking-total {
    font-size: 1.1rem;
    color: #2c5aa0;
}

.booking-actions {
    padding: 16px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-outline-sm, .btn-secondary-sm {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-outline-sm {
    background: transparent;
    color: #2c5aa0;
    border: 1px solid #2c5aa0;
}

.btn-outline-sm:hover {
    background: #2c5aa0;
    color: white;
}

.btn-secondary-sm {
    background: #6c757d;
    color: white;
}

.btn-secondary-sm:hover {
    background: #5a6268;
}

.no-bookings {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-bookings i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 16px;
}

.no-bookings h4 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
}

.bookings-modal-footer {
    padding: 20px 24px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
}

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

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive user profile */
@media (max-width: 768px) {
    .user-menu-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .user-menu-btn span {
        display: none; /* Hide username on mobile, show only icons */
    }
    
    .user-dropdown {
        min-width: 160px;
    }
    
    .user-dropdown a {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

/* Admin Dropdown Styles */
.admin-dropdown {
    position: relative;
    display: inline-block; /* Visible by default so Admin link is accessible */
}

.admin-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 220px;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 9999;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    margin-top: 8px;
}

.admin-dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.admin-welcome-text {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
}

.admin-welcome-text:hover {
    background: linear-gradient(135deg, #e8f2ff 0%, #d4e7ff 100%);
    color: #2c5aa0;
    text-decoration: none;
}

.admin-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-radius: 0 0 8px 8px;
}

.admin-logout-btn:hover {
    background: #fff5f5;
    color: #c82333;
    text-decoration: none;
}

.admin-dropdown.show .admin-dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

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



.user-link {
    color: #2c5aa0 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.08) 0%, rgba(44, 90, 160, 0.12) 100%);
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

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

.user-link:hover::before {
    left: 100%;
}

.user-link:hover {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.15) 0%, rgba(44, 90, 160, 0.25) 100%) !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(44, 90, 160, 0.25);
    border: 2px solid rgba(44, 90, 160, 0.2);
}

.user-link:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.2);
}

.user-link .fa-user-circle {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(44, 90, 160, 0.3));
}

.user-link .fa-chevron-down {
    transition: all 0.3s ease;
    font-size: 0.75rem;
    opacity: 0.8;
}

.user-dropdown.active .user-link .fa-chevron-down {
    transform: rotate(180deg);
    opacity: 1;
}

/* Professional glow effect for active state */
.user-dropdown.active .user-link {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.2) 0%, rgba(44, 90, 160, 0.3) 100%);
    border: 2px solid rgba(44, 90, 160, 0.3);
    box-shadow: 0 0 20px rgba(44, 90, 160, 0.3), 0 4px 16px rgba(44, 90, 160, 0.25);
    transform: translateY(-2px);
}

/* Enhanced focus styles for accessibility */
.user-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.3), 0 4px 16px rgba(44, 90, 160, 0.25);
    border: 2px solid rgba(44, 90, 160, 0.4);
}

/* Professional loading state (for future use) */
.user-link.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(44, 90, 160, 0.2);
    border-top: 2px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.user-nav-item {
    list-style: none;
}

/* Enhanced user dropdown styling for better visual hierarchy */
.user-dropdown-content .account-info {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid rgba(44, 90, 160, 0.1);
    margin: 0.5rem 0;
    border-radius: 8px;
}

.user-dropdown-content .logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    color: #dc3545;
    text-decoration: none;
    transition: all 0.2s ease;
    border-top: 1px solid rgba(44, 90, 160, 0.1);
    font-weight: 500;
}

.user-dropdown-content .logout-btn:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
    color: #c82333;
    transform: translateX(3px);
}

.user-dropdown-content .logout-btn:active {
    transform: translateX(1px);
}

/* Add subtle animations to dropdown items */
.user-dropdown-content > div {
    animation: slideInFromRight 0.3s ease forwards;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments for user dropdown */
@media (max-width: 768px) {
    .user-dropdown-content {
        min-width: 200px;
        right: -10px;
        box-shadow: 0 8px 24px rgba(44, 90, 160, 0.2);
    }
    
    .user-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 20px;
    }
    
    .user-link .fa-user-circle {
        font-size: 1.1rem;
    }
    
    .user-nav-item {
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .user-dropdown-content {
        min-width: 180px;
        right: -15px;
    }
    
    .user-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        gap: 0.3rem;
    }
    
    .user-link .fa-user-circle {
        font-size: 1rem;
    }
}

/* Mobile Navigation Toggle */
.nav-toggle,
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-toggle:hover,
.hamburger:hover {
    background: rgba(44, 90, 160, 0.1);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #2c5aa0;
    margin: 3px 0;
    transition: 0.3s;
    display: block !important;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    background: white;
    border-radius: 50px;
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-box i {
    color: #999;
    margin: 0 15px;
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 15px 0;
    color: #333;
}

.search-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #1e3f73;
}

/* Featured Communities */
.featured-communities {
    padding: 80px 0;
    background: #f8f9fa;
}

.featured-communities h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.community-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.community-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.location {
    color: #666;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.amenity {
    background: #e8f2ff;
    color: #2c5aa0;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Location Guides */
.location-guides {
    padding: 80px 0;
}

.location-guides h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.location-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: scale(1.02);
}

.location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem;
}

.location-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Rental Advice */
.rental-advice {
    padding: 80px 0;
    background: #f8f9fa;
}

.rental-advice h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.advice-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.advice-card:hover {
    transform: translateY(-5px);
}

.advice-card i {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.advice-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.advice-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1e3f73;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #5a9fd4;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #5a9fd4;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #bdc3c7;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #5a9fd4;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #5a9fd4;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .header {
        padding: 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo h2 {
        font-size: 1.4rem;
    }
    
    .hamburger,
    .nav-toggle {
        display: flex !important;
        background: rgba(44, 90, 160, 0.1);
        border: 1px solid #2c5aa0;
        padding: 8px;
        border-radius: 4px;
        z-index: 1000;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 5px 25px rgba(0,0,0,0.1);
        padding: 1.5rem 0;
        gap: 0.5rem;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        padding: 0 1rem;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem;
        margin: 0.25rem 0;
        border-radius: 8px;
        font-size: 1rem;
    }
    
    .nav-link:hover {
        background: rgba(44, 90, 160, 0.12);
        transform: translateX(5px);
    }
    
    /* Keep user profile visible on mobile, but hide auth buttons */
    .auth-buttons {
        display: none;
    }
    
    .user-profile {
        display: flex !important;
    }
    
    .user-menu-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .user-dropdown {
        right: -10px;
        min-width: 160px;
        z-index: 10001;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        top: 55px;
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: 15px;
        padding: 1rem;
    }

    .search-input {
        margin: 0.5rem 0;
        padding: 1rem;
        border: 1px solid #ddd;
        border-radius: 10px;
        font-size: 16px;
        line-height: 1.4;
    }

    .search-btn {
        width: 100%;
        border-radius: 10px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 14px 16px;
        line-height: 1.4;
    }

    .search-input::placeholder,
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        font-size: 16px;
        opacity: 0.7;
    }

    .communities-grid,
    .locations-grid,
    .advice-grid {
        grid-template-columns: 1fr;
    }

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

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .featured-communities h2,
    .location-guides h2,
    .rental-advice h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Property Detail Modal */
.property-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.property-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.property-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    color: #2c5aa0;
    font-size: 1.8rem;
}

.modal-location {
    color: #666;
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image-container {
    position: relative;
}

.modal-villa-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-details h4 {
    color: #2c5aa0;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

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

.modal-price {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin: 0;
}

.modal-status {
    background: #28a745;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.modal-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.modal-amenities .amenity {
    background: #f8f9fa;
    color: #2c5aa0;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
}

.modal-actions {
    padding: 1.5rem 2rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    border-top: 1px solid #eee;
}

.contact-btn, .calculator-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-btn {
    background: #28a745;
    color: white;
}

.contact-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.calculator-btn {
    background: #2c5aa0;
    color: white;
}

.calculator-btn:hover {
    background: #1e3d6f;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .property-modal.active {
        padding: 1rem;
    }
}

/* ===============================================
   BOOKING INVESTMENTS PAGE STYLES
   =============================================== */

/* Hero Section */
.booking-investments-hero {
    background: linear-gradient(135deg, rgba(0, 53, 128, 0.85) 0%, rgba(0, 87, 184, 0.85) 100%), 
                url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
    padding: 4rem 0;
    color: white;
    text-align: center;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.booking-investments-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 53, 128, 0.1) 0%, rgba(0, 87, 184, 0.1) 100%);
    z-index: 1;
}

.booking-investments-hero .container {
    position: relative;
    z-index: 2;
}

.booking-logo-section {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.booking-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

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

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

/* Investment Information Section */
.investment-info {
    padding: 3rem 0;
    background: white;
}

.investment-content {
    max-width: 1000px;
    margin: 0 auto;
}

.investment-text h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
    margin-top: 0;
    text-align: center;
}

.investment-text > p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 3rem;
    text-align: center;
}

/* Investment Highlights */
.investment-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #003580;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 53, 128, 0.1);
}

.highlight-icon {
    background: #003580;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.highlight-content h3 {
    font-size: 1.25rem;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}


/* Call to Action Section */
.investment-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 250px;
    justify-content: center;
}

.cta-button.primary {
    background: #003580;
    color: white;
    border: 2px solid #003580;
}

.cta-button.primary:hover {
    background: #0057B8;
    border-color: #0057B8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 53, 128, 0.2);
}

.cta-button.secondary {
    background: white;
    color: #003580;
    border: 2px solid #003580;
}

.cta-button.secondary:hover {
    background: #003580;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 53, 128, 0.2);
}

/* Risk Warning */
.risk-warning {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem;
    margin-top: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.risk-warning i {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.risk-warning p {
    margin: 0;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .booking-logo {
        max-width: 200px;
    }
    
    .investment-text h2,
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .investment-highlights {
        grid-template-columns: 1fr;
    }
    
    .highlight-item {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .booking-investments-hero {
        padding: 3rem 0;
    }
    
    .investment-info {
        padding: 3rem 0;
    }
    
    .investment-cta {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .investment-text h2,
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
}

/* Modal Styles for Login/Signup */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 0;
    border-radius: 16px;
    width: 95%;
    max-width: 550px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content .close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #6b7280;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-content .close:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.modal-content h2 {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    text-align: center;
    padding: 2.5rem 2.5rem 0 2.5rem;
}

.modal-content form {
    padding: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f9fafb;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #2c5aa0;
    background: white;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.modal-content .btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.modal-content .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.modal-footer {
    text-align: center;
    padding: 0 2.5rem 2.5rem 2.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.modal-footer a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
}

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

/* Modal animations */
.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile responsiveness for modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 90vw;
        margin: 1rem;
    }
    
    .modal-content h2 {
        font-size: 1.75rem;
        padding: 2rem 1.5rem 0 1.5rem;
    }
    
    .modal-body {
        padding: 1rem 1.5rem;
    }
    
    .modal-footer {
        padding: 0 1.5rem 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        max-width: 95vw;
        margin: 0.5rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
        padding: 1.5rem 1rem 0 1rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: 75vh;
    }
    
    .modal-footer {
        padding: 0 1rem 1.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Perfect Match Section - Professional Styling */
.perfect-match-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    position: relative;
    overflow: hidden;
}

.perfect-match-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(44, 90, 160, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.section-title {
    font-size: 3rem;
    color: #1a365d;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.search-filter-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(44, 90, 160, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
}

.search-filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #4f83cc, #2c5aa0);
    border-radius: 20px 20px 0 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.filter-group {
    position: relative;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

.filter-label i {
    color: #2c5aa0;
    font-size: 1rem;
}

.filter-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fafbfc;
    font-size: 1rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
}

.filter-select:focus {
    outline: none;
    border-color: #2c5aa0;
    background: white;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.filter-select:hover {
    border-color: #94a3b8;
    background: white;
}

.search-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.search-btn-primary {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.search-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
}

.search-btn-secondary {
    background: white;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn-secondary:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .perfect-match-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .search-filter-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        border-radius: 15px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .search-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-btn-primary,
    .search-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .search-filter-card {
        padding: 1.5rem 1rem;
    }
    
    .filter-select {
        padding: 0.875rem 1rem;
    }
}

/* Modal Scrolling and Checkbox Styling */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem 2.5rem 3rem 2.5rem;
    padding-right: 2rem;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.8);
    border-radius: 4px;
    margin: 4px 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    margin-top: 0.25rem;
    width: auto;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.checkbox-group label a {
    color: #2c5aa0;
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

/* Friendly Modal Styling */
.welcome-header {
    text-align: center;
    padding: 2rem 2.5rem 1rem 2.5rem;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
    border-radius: 16px 16px 0 0;
    position: relative;
}

.welcome-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #4f83cc, #2c5aa0);
}

.welcome-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
}

.welcome-icon i {
    color: white;
    font-size: 1.5rem;
}

.welcome-header h2 {
    color: #1f2937;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.welcome-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label i {
    color: #2c5aa0;
    font-size: 0.9rem;
    width: 16px;
}

.modal-content .btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

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

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

.modal-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
}

.modal-footer {
    background: #f8fafb;
    border-radius: 0 0 16px 16px;
    color: #64748b;
    font-weight: 500;
}

/* Mobile responsiveness for friendly modal */
@media (max-width: 768px) {
    .welcome-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .welcome-header h2 {
        font-size: 1.8rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .name-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .welcome-header {
        padding: 1rem;
    }
    
    .welcome-icon {
        width: 50px;
        height: 50px;
    }
    
    .welcome-icon i {
        font-size: 1.2rem;
    }
    
    .welcome-header h2 {
        font-size: 1.6rem;
    }
    
    .welcome-subtitle {
        font-size: 0.9rem;
    }
}