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

:root {
    --navy-blue: #1e3a8a;
    --navy-blue-dark: #1e40af;
    --navy-blue-light: #3b82f6;
    --red: #dc2626;
    --red-light: #ef4444;
    --red-dark: #b91c1c;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --light-blue: #e0f2f7;
    --light-blue-dark: #b8e6f0;
    --orange: #ff6b35;
    --dark-grey: #2c3e50;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white);
    overflow-x: hidden;
}

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

@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border: none;
        top: auto;
        width: auto;
    }

    .nav-link {
        border: none !important;
        width: auto !important;
    }

    .nav-btn {
        margin: 0 !important;
        width: auto !important;
        padding: 10px 20px;
    }

    .nav-social {
        display: flex;
    }
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icon {
    color: var(--navy-blue);
    font-size: 1.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--red);
}

.nav-logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy-blue);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    margin: 0 auto;
}

.nav-logo span {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--red) 50%, var(--navy-blue-light) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
    position: relative;
}

.nav-logo span::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--navy-blue), var(--red), var(--navy-blue-light));
    border-radius: 8px;
    z-index: -1;
    opacity: 0.1;
    filter: blur(4px);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.nav-logo i {
    font-size: 2rem;
    color: var(--red);
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-btn {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-btn:hover {
    background: var(--red-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--navy-blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: url('gemini\ back.png') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 20px 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-align: center;
}

@media (min-width: 481px) {
    .hero-title {
        font-size: 2.4rem;
    }
}

@media (min-width: 769px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 3.5rem;
        text-align: left;
    }
}

/* Hero search styles moved to enhanced section below */

.search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

/* Search item styles moved to enhanced section below */

.highlight {
    color: var(--red-light);
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 481px) {
    .hero-subtitle {
        font-size: 1.15rem;
    }
}

@media (min-width: 769px) {
    .hero-subtitle {
        font-size: 1.2rem;
        text-align: left;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

@media (min-width: 481px) {
    .hero-buttons {
        gap: 15px;
        margin-bottom: 35px;
    }
}

@media (min-width: 769px) {
    .hero-buttons {
        flex-direction: row;
        gap: 20px;
        margin-bottom: 40px;
    }
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

@media (min-width: 769px) {
    .btn-primary {
        padding: 15px 30px;
        font-size: 1.1rem;
        width: auto;
    }
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy-blue);
}

@media (min-width: 769px) {
    .btn-secondary {
        padding: 15px 30px;
        font-size: 1.1rem;
        width: auto;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.stat {
    text-align: center;
}

.stat:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--red-light);
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
}

@media (min-width: 481px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .stat:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .hero-stats {
        gap: 40px;
    }
}

.hero-image {
    display: none;
    justify-content: center;
    align-items: center;
}

@media (min-width: 769px) {
    .hero-image {
        display: flex;
    }
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-grey);
    text-align: center;
    margin-bottom: 40px;
}

@media (min-width: 481px) {
    .section-title {
        font-size: 2.3rem;
        margin-bottom: 45px;
    }
}

@media (min-width: 769px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 60px 20px;
    background: var(--white);
}

@media (min-width: 769px) {
    .how-it-works {
        padding: 80px 0;
    }
}

.process-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 481px) {
    .process-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 769px) {
    .process-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-bottom: 60px;
    }
}

.process-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

@media (min-width: 769px) {
    .process-card {
        padding: 40px 30px;
    }
}

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

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

@media (min-width: 769px) {
    .card-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 25px;
    }
}

.card-icon i {
    font-size: 1.8rem;
    color: var(--dark-grey);
}

@media (min-width: 769px) {
    .card-icon i {
        font-size: 2rem;
    }
}

.process-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 12px;
}

@media (min-width: 769px) {
    .process-card h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
}

.process-card p {
    color: var(--light-grey);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (min-width: 769px) {
    .process-card p {
        font-size: 1rem;
    }
}

.housing-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 481px) {
    .housing-types {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.housing-type {
    background: var(--white);
    padding: 20px 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

@media (min-width: 769px) {
    .housing-type {
        padding: 25px 20px;
    }
}

.housing-type:hover {
    transform: translateY(-3px);
}

.type-icon {
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

@media (min-width: 769px) {
    .type-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }
}

.type-icon i {
    font-size: 1.3rem;
    color: var(--dark-grey);
}

@media (min-width: 769px) {
    .type-icon i {
        font-size: 1.5rem;
    }
}

.housing-type span {
    font-weight: 600;
    color: var(--dark-grey);
    font-size: 0.9rem;
}

@media (min-width: 769px) {
    .housing-type span {
        font-size: 1rem;
    }
}

/* Top Cities Section */
.top-cities {
    padding: 70px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

@media (min-width: 769px) {
    .top-cities {
        padding: 100px 0;
    }
}

.top-cities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23059669" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

/* Dorms Page Enhancements */
.dorms-hero {
    padding: 80px 0 30px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(220, 38, 38, 0.08));
}

.dorms-hero .dorms-hero-inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.dorms-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.dorms-hero p {
    color: var(--gray-700);
    margin-bottom: 22px;
}

.dorms-controls {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.search-bar-compact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.search-bar-compact input {
    border: none;
    outline: none;
    width: 280px;
}

.sort-select {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.city-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

.chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--dark-grey);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover { transform: translateY(-2px); }
.chip.active { background: var(--navy-blue); color: var(--white); border-color: transparent; }

.results-meta { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 6px; }

.dorm-card {
    position: relative;
}

.dorm-card .rating-badge {
    top: auto;
    bottom: 15px;
    right: 15px;
}

.dorm-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--navy-blue);
}

.dorm-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

@media (max-width: 768px) {
    .search-bar-compact input { width: 190px; }
}

.city-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

@media (min-width: 481px) {
    .city-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 769px) {
    .city-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 40px;
        padding: 0;
    }
}

.city-card {
    background: white;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    cursor: pointer;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--navy-blue));
}

.city-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.city-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.city-card:hover .city-image {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

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

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

.city-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--navy-blue), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.city-card p {
    color: var(--grey);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Casablanca Hero Section */
.casablanca-hero {
    padding: 140px 0;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #1e40af 100%);
    background-size: 400% 400%;
    position: relative;
    overflow: hidden;
    text-align: center;
    animation: gradientShift 8s ease-in-out infinite;
}

.casablanca-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.4) 0%, rgba(30, 64, 175, 0.9) 70%);
    pointer-events: none;
    animation: pulse 6s ease-in-out infinite;
}

.casablanca-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 200px 120px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 250px 60px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 300px 150px;
    pointer-events: none;
    animation: starfield 25s linear infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes starfield {
    0% { transform: translateY(0) translateX(0); opacity: 0.8; }
    50% { transform: translateY(-50px) translateX(10px); opacity: 1; }
    100% { transform: translateY(-100px) translateX(0); opacity: 0.8; }
}

@keyframes fadeInUp {
    0% { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInScale {
    0% { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

.casablanca-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.casablanca-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

.casablanca-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 70px;
    font-weight: 400;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s both;
}

.casablanca-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s both;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 160px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

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

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-item:hover::before {
    left: 100%;
}

.stat-number {
    font-size: 3.8rem;
    font-weight: 800;
    color: #f97316;
    margin-bottom: 12px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), 0 0 20px rgba(249, 115, 22, 0.3);
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 30px rgba(249, 115, 22, 0.5);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-item:hover .stat-label {
    opacity: 1;
    color: white;
}

/* Student Reviews Section */
.student-reviews {
    padding: 70px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

@media (min-width: 769px) {
    .student-reviews {
        padding: 100px 0;
    }
}

.student-reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/><circle cx="50" cy="10" r="0.5" fill="%23000" opacity="0.03"/><circle cx="90" cy="40" r="0.5" fill="%23000" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.student-reviews .section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 481px) {
    .student-reviews .section-title {
        font-size: 2.2rem;
        margin-bottom: 45px;
    }
}

@media (min-width: 769px) {
    .student-reviews .section-title {
        font-size: 3rem;
        margin-bottom: 60px;
    }
}

.review-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    position: relative;
    z-index: 2;
}

@media (min-width: 481px) {
    .review-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 769px) {
    .review-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

.review-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

@media (min-width: 769px) {
    .review-card {
        padding: 40px 30px;
    }
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #f59e0b);
}

.review-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.review-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover .review-avatar::before {
    opacity: 1;
}

.review-avatar.male {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.review-avatar.male::after {
    content: '👨';
    font-size: 2.5rem;
}

.review-avatar.female {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.review-avatar.female::after {
    content: '👩';
    font-size: 2.5rem;
}

.review-stars {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.review-stars i {
    color: #fbbf24;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.review-card:hover .review-stars i {
    transform: scale(1.1);
    color: #f59e0b;
}

.review-text {
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
    padding: 20px 0;
}

.review-text::before {
    content: '"';
    font-size: 4rem;
    color: #e5e7eb;
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: serif;
    line-height: 1;
}

.review-text::after {
    content: '"';
    font-size: 4rem;
    color: #e5e7eb;
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-family: serif;
    line-height: 1;
}

/* Call to Action Footer */
.cta-footer {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(30,58,138,1) 0%, rgba(220,38,38,0.9) 100%), url('cover 2.png') center/cover no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

@media (min-width: 769px) {
    .cta-footer {
        padding: 90px 0;
    }
}

.cta-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 100%);
}

.cta-footer .container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.cta-heading {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

@media (min-width: 481px) {
    .cta-heading {
        font-size: 2.2rem;
    }
}

@media (min-width: 769px) {
    .cta-heading {
        font-size: 2.4rem;
    }
}

.cta-subtext {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 28px;
}

@media (min-width: 769px) {
    .cta-subtext {
        font-size: 1.1rem;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 24px;
}

@media (min-width: 481px) {
    .cta-buttons {
        flex-direction: row;
        gap: 15px;
        align-items: center;
    }
}

@media (min-width: 769px) {
    .cta-buttons {
        gap: 18px;
    }
}

.cta-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-height: 44px;
}

@media (min-width: 769px) {
    .cta-btn {
        padding: 16px 28px;
        font-size: 1.05rem;
        border-radius: 999px;
    }
}

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

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.9);
    color: var(--white);
}

.cta-btn.secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.cta-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0.95;
}

.cta-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .cta-heading { font-size: 1.9rem; }
    .cta-subtext { font-size: 1rem; }
    .cta-buttons { flex-direction: column; gap: 12px; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .process-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .housing-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .city-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: 600px;
    }
    
    .casablanca-hero {
        padding: 120px 0;
    }
    
    .casablanca-title {
        font-size: 3.2rem;
    }
    
    .casablanca-stats {
        flex-direction: row;
        gap: 30px;
    }
    
    .stat-item {
        padding: 15px;
        min-width: 140px;
    }
    
    .stat-number {
        font-size: 3.2rem;
    }
    
    .review-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .student-reviews .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .process-cards {
        grid-template-columns: 1fr;
    }
    
    .housing-types {
        grid-template-columns: 1fr;
    }
    
    .city-cards {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 350px;
    }
    
    .city-card {
        padding: 25px 15px;
    }
    
    .city-image {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
    }
    
    .city-card h3 {
        font-size: 1.4rem;
    }
    
    .casablanca-hero {
        padding: 100px 0;
    }
    
    .casablanca-title {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }
    
    .casablanca-description {
        font-size: 1.1rem;
        margin-bottom: 50px;
    }
    
    .casablanca-stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .stat-item {
        padding: 20px;
        min-width: 200px;
        margin: 0 auto;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .review-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .student-reviews {
        padding: 80px 0;
    }
    
    .student-reviews .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .review-card {
        padding: 30px 20px;
    }
    
    .review-avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .review-avatar.male::after,
    .review-avatar.female::after {
        font-size: 2rem;
    }
    
    .review-text {
        font-size: 1rem;
        padding: 15px 0;
    }
    
    .review-text::before,
    .review-text::after {
        font-size: 3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-btn {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
}

@media (max-width: 480px) {
    /* ========== HERO SECTION ========== */
    .hero {
        padding: 80px 16px 40px;
        min-height: auto;
    }
    
    .hero-container {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 16px;
        word-break: break-word;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* ========== HERO SEARCH BAR ========== */
    .hero-search {
        width: 100%;
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
        position: relative;
    }
    
    #schoolSearchInput {
        width: 100%;
        min-height: 44px;
        padding: 12px 14px;
        font-size: 16px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
    }
    
    .search-btn {
        width: 100%;
        min-height: 44px;
        margin-left: 0 !important;
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    /* ========== CTA BUTTONS ========== */
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-height: 44px;
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    
    .btn-primary {
        padding: 12px 16px;
    }
    
    .btn-secondary {
        padding: 12px 16px;
    }
    
    /* ========== STATS SECTION ========== */
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 20px;
    }
    
    .stat {
        text-align: center;
    }
    
    .stat:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .stat-number {
        font-size: 1.5rem;
        font-weight: 700;
    }
    
    .stat-label {
        font-size: 0.8rem;
        opacity: 0.85;
    }
    
    /* ========== GENERAL SPACING ========== */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .process-card,
    .housing-type,
    .review-card {
        padding: 20px 16px;
    }
    
    /* ========== FLOATING CHAT WIDGET ========== */
    .chat-widget {
        bottom: 16px;
        right: 16px;
        z-index: 999;
    }
    
    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .chat-window {
        width: calc(100vw - 32px);
        max-width: 340px;
        height: 450px;
        bottom: 70px;
        right: 0;
        left: auto;
    }
    
    /* ========== OVERFLOW PREVENTION ========== */
    html,
    body {
        overflow-x: hidden;
    }
    
    .hero,
    .hero-container,
    .hero-content {
        overflow-x: hidden;
    }
} 

/* Popular Dorms and Highest Rated Dorms Sections */
.popular-dorms,
.top-dorms {
    padding: 80px 0;
    background: var(--white);
}

.popular-dorms .section-title,
.top-dorms .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-grey);
    margin-bottom: 50px;
}

.top-cities .section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark-grey);
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--navy-blue), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.popular-dorms .section-title::after,
.top-dorms .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--navy-blue), var(--red));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Dorm Cards */
.dorm-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.dorm-card.popular {
    border: 2px solid var(--orange);
}

.dorm-card.top-rated {
    border: 2px solid var(--red);
}

.dorm-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

/* Badges */
.popular-badge,
.rating-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--orange);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.rating-badge {
    background: var(--red);
}

.popular-badge i,
.rating-badge i {
    font-size: 0.9rem;
}

/* Dorm Info */
.dorm-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dorm-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 10px;
    line-height: 1.3;
}

.location {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location i {
    color: var(--red);
    font-size: 1rem;
}

/* Dorm Features */
.dorm-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.dorm-features span {
    background: var(--light-blue);
    color: var(--dark-grey);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dorm-features i {
    color: var(--navy-blue);
    font-size: 0.9rem;
}

/* Dorm Price and Reviews */
.dorm-price {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-blue);
}

.reviews {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 25px;
}

.carousel-item {
    min-width: 320px;
    flex-shrink: 0;
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--navy-blue);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.carousel-btn i {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Responsive Design for Dorm Sections */
@media (max-width: 1024px) {
    .carousel-item {
        min-width: 280px;
    }
    
    .popular-dorms .section-title,
    .top-dorms .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .popular-dorms,
    .top-dorms {
        padding: 60px 0;
    }
    
    .popular-dorms .section-title,
    .top-dorms .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .carousel-item {
        min-width: 260px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .prev-btn {
        left: -20px;
    }
    
    .next-btn {
        right: -20px;
    }
    
    .dorm-info {
        padding: 20px;
    }
    
    .dorm-features {
        gap: 8px;
    }
    
    .dorm-features span {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .popular-dorms .section-title,
    .top-dorms .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .carousel-item {
        min-width: 240px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: -15px;
    }
    
    .next-btn {
        right: -15px;
    }
    
    .dorm-info {
        padding: 18px;
    }
    
    .dorm-info h3 {
        font-size: 1.2rem;
    }
    
    .price {
        font-size: 1.1rem;
    }
}

/* Sign In Modal Styles */
.signin-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.signin-content {
    background: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

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

.signin-header {
    background: linear-gradient(135deg, var(--navy-blue), var(--red));
    color: var(--white);
    padding: 30px;
    text-align: center;
    position: relative;
}

.signin-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.signin-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

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

.signin-options {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.signin-option {
    border: 2px solid var(--gray-200);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.signin-option:hover {
    border-color: var(--navy-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.1);
}

.option-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.gmail-option .option-icon {
    background: linear-gradient(135deg, #ea4335, #fbbc05);
    color: var(--white);
}

.id-option .option-icon {
    background: linear-gradient(135deg, var(--navy-blue), var(--red));
    color: var(--white);
}

.signin-option h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.signin-option p {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.signin-btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gmail-btn {
    background: linear-gradient(135deg, #ea4335, #fbbc05);
    color: var(--white);
}

.gmail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 67, 53, 0.3);
}

.id-btn {
    background: linear-gradient(135deg, var(--navy-blue), var(--red));
    color: var(--white);
}

.id-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

/* Verification Steps */
.verification-step {
    padding: 40px 30px;
    text-align: center;
}

.verification-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-blue), var(--red));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.verification-step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 15px;
}

.verification-step p {
    color: var(--gray-600);
    margin-bottom: 30px;
    line-height: 1.6;
}

.verification-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Email Input Container */
.email-input-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.email-input-container input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.email-input-container input:focus {
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.email-input-container input::placeholder {
    color: var(--gray-400);
}

/* ID Scan Styles */
.scan-area {
    margin: 20px 0;
}

.scan-box {
    border: 3px dashed var(--gray-300);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    background: var(--gray-50);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scan-box:hover {
    border-color: var(--navy-blue);
    background: var(--light-blue);
}

.scan-box i {
    font-size: 3rem;
    color: var(--navy-blue);
    margin-bottom: 15px;
}

.scan-box p {
    color: var(--gray-600);
    font-size: 1rem;
    margin: 0;
}

.scan-preview {
    text-align: center;
}

.scan-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.scan-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Verification Success */
.verification-success {
    padding: 40px 30px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.verification-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 15px;
}

.verification-success p {
    color: var(--gray-600);
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .signin-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .signin-header {
        padding: 25px 20px;
    }
    
    .signin-header h2 {
        font-size: 1.5rem;
    }
    
    .signin-options {
        padding: 30px 20px;
    }
    
    .verification-step,
    .verification-success {
        padding: 30px 20px;
    }
    
    .verification-actions,
    .success-actions {
        flex-direction: column;
    }
    
    .verification-actions button,
    .success-actions button {
        width: 100%;
    }
}

/* City Dorms Modal Styles */
.city-dorms-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.city-dorms-content {
    background: var(--white);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.city-dorms-header {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.city-hero {
    position: relative;
    width: 100%;
    height: 100%;
}

.city-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.city-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 40px;
}

.city-hero-overlay h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.city-hero-overlay p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.close-city-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.city-dorms-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

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

.city-dorm-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.city-dorm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--navy-blue);
}

.city-dorm-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.city-dorm-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--red);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.city-dorm-info {
    padding: 25px;
}

.city-dorm-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 10px;
    line-height: 1.3;
}

.city-dorm-location {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-dorm-location i {
    color: var(--red);
    font-size: 1rem;
}

.city-dorm-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.city-dorm-features span {
    background: var(--light-blue);
    color: var(--dark-grey);
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.city-dorm-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.city-dorm-price .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-blue);
}

.city-dorm-price .reviews {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design for City Dorms Modal */
@media (max-width: 1024px) {
    .city-dorms-content {
        margin: 5% auto;
        width: 98%;
    }
    
    .dorms-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .city-dorms-body {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .city-dorms-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .city-dorms-header {
        height: 250px;
    }
    
    .city-hero-overlay h1 {
        font-size: 2rem;
    }
    
    .city-hero-overlay p {
        font-size: 1rem;
    }
    
    .dorms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .city-dorms-body {
        padding: 20px 15px;
    }
    
    .city-dorm-info {
        padding: 20px;
    }
}

/* For Students Section Styles */
.for-students-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 769px) {
    .for-students-section {
        padding: 80px 0;
    }
}

.for-students-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e2e8f0" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23cbd5e1" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%23f1f5f9" opacity="0.4"/><circle cx="10" cy="60" r="0.5" fill="%23f1f5f9" opacity="0.4"/><circle cx="90" cy="40" r="0.5" fill="%23f1f5f9" opacity="0.4"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.for-students-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .for-students-content {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.for-students-text {
    padding-right: 0;
}

@media (min-width: 769px) {
    .for-students-text {
        padding-right: 20px;
    }
}

.for-students-text .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 769px) {
    .for-students-text .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

@media (min-width: 769px) {
    .section-subtitle {
        font-size: 1.25rem;
    }
}

.student-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 481px) {
    .student-features {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--navy-blue-light);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--navy-blue-light);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

.for-students-visual {
    position: relative;
}

.cities-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    perspective: 1000px;
}

.city-preview-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.city-preview-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--navy-blue-light);
}

.city-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.city-preview-card:hover::before {
    opacity: 1;
}

.city-preview-image {
    height: 120px;
    overflow: hidden;
    position: relative;
}

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

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

.city-preview-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.city-preview-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.city-preview-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
    font-weight: 500;
}

/* Animation for city cards */
.city-preview-card:nth-child(1) {
    animation: slideInLeft 0.6s ease-out;
}

.city-preview-card:nth-child(2) {
    animation: slideInLeft 0.8s ease-out;
}

.city-preview-card:nth-child(3) {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .for-students-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .for-students-text {
        padding-right: 0;
        text-align: center;
    }
    
    .student-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .for-students-section {
        padding: 60px 0;
    }
    
    .for-students-text .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .feature-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .feature-item i {
        margin-bottom: 0.5rem;
    }
    
    .cities-preview {
        gap: 1rem;
    }
    
    .city-preview-card:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .for-students-section {
        padding: 40px 0;
    }
    
    .for-students-text .section-title {
        font-size: 1.75rem;
    }
    
    .student-features {
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
}

/* Search Dropdown Styling */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 8px;
}

.search-item {
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.institution-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.institution-name {
    font-weight: 600;
    color: var(--dark-grey);
    font-size: 0.95rem;
}

.institution-type {
    font-size: 0.85rem;
    color: var(--green);
    font-weight: 500;
}

.institution-city {
    font-size: 0.8rem;
    color: var(--grey);
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

/* Enhanced search input styling */
.hero-search {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: visible;
    transition: all 0.3s ease;
    margin-top: 12px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 0.9rem;
    z-index: 10;
}

.hero-search:focus-within {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.hero-search input {
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 20px 24px;
    width: 300px;
    background: transparent;
    color: var(--gray-800);
}

.hero-search input::placeholder {
    color: var(--gray-500);
}

.hero-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--green);
    font-size: 1.1rem;
}

.hero-search input {
    padding-left: 50px;
}

/* Dorm Action Buttons */
.dorm-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.dorm-actions .btn-primary,
.dorm-actions .btn-secondary {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.dorm-actions .btn-primary {
    background: #ef4444;
    color: white;
}

.dorm-actions .btn-primary:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.dorm-actions .btn-secondary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.dorm-actions .btn-secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

/* Support Button */
.support-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.support-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

.support-button i {
    color: white;
    font-size: 24px;
}

.support-button .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    }
}

/* Support Modal */
.support-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.support-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

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

.support-modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.support-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.support-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.support-modal-close:hover {
    opacity: 0.7;
}

.support-modal-body {
    padding: 30px;
}

.support-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.support-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.support-option:hover {
    background: #e2e8f0;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.support-option i {
    font-size: 24px;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.support-option .option-text {
    flex: 1;
}

.support-option .option-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
}

.support-option .option-description {
    font-size: 0.9rem;
    color: #6b7280;
}

.support-option .option-arrow {
    color: #9ca3af;
    font-size: 18px;
}

/* Live Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chat-toggle {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: chatPulse 2s infinite;
    text-decoration: none;
    position: relative;
    min-height: 44px;
    min-width: 44px;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

.chat-toggle i {
    color: white;
    font-size: 24px;
}

.chat-toggle .chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

@keyframes chatPulse {
    0% {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    }
}

@media (min-width: 769px) {
    .chat-widget {
        bottom: 30px;
        right: 30px;
        z-index: 10000;
    }

    .chat-toggle {
        width: 60px;
        height: 60px;
    }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.3s ease-out;
}

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

.chat-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chat-header-info p {
    margin: 5px 0 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 80%;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message.support {
    align-self: flex-start;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message-bubble.user {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.message-bubble.support {
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 5px;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.message-avatar.user {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.message-avatar.support {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    padding: 12px 16px;
    font-size: 0.9rem;
    resize: none;
    max-height: 100px;
    min-height: 44px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.chat-send {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    color: #6b7280;
    font-size: 0.85rem;
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDot {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Support Options in Chat */
.chat-support-options {
    padding: 15px 20px;
    background: #f1f5f9;
    border-top: 1px solid #e5e7eb;
}

.support-options-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.support-options-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.support-option-btn {
    padding: 8px 12px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.support-option-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Landlord Chat Modal */
.landlord-chat-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.landlord-chat-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    height: 80%;
    max-height: 700px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatModalSlideIn 0.3s ease-out;
}

@keyframes chatModalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.landlord-chat-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.landlord-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.landlord-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.landlord-info p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.landlord-chat-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.landlord-chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.landlord-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.landlord-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 80%;
}

.landlord-message.student {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.landlord-message.landlord {
    align-self: flex-start;
}

.landlord-message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
}

.landlord-message-bubble.student {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.landlord-message-bubble.landlord {
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.landlord-message-time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 5px;
}

.landlord-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.landlord-message-avatar.student {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.landlord-message-avatar.landlord {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.landlord-chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.landlord-chat-input {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    padding: 12px 16px;
    font-size: 0.9rem;
    resize: none;
    max-height: 100px;
    min-height: 44px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.landlord-chat-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.landlord-chat-send {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.landlord-chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.landlord-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.landlord-typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    color: #6b7280;
    font-size: 0.85rem;
    font-style: italic;
}

.landlord-typing-dots {
    display: flex;
    gap: 3px;
}

.landlord-typing-dot {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: landlordTypingDot 1.4s infinite ease-in-out;
}

.landlord-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.landlord-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes landlordTypingDot {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Mobile Support Button */
@media (max-width: 768px) {
    .support-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .support-button i {
        font-size: 20px;
    }
    
    .support-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .support-modal-body {
        padding: 20px;
    }
    
    .chat-widget {
        bottom: 20px;
        right: 20px;
        z-index: 10000 !important;
        overflow: visible;
    }
    
    .chat-toggle {
        width: 56px;
        height: 56px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 24px;
    }
    
    .chat-toggle i {
        font-size: 20px;
    }

    .chat-badge {
        position: absolute !important;
        top: -8px !important;
        right: -8px !important;
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 12px !important;
    }
    
    .chat-window {
        width: calc(100vw - 24px);
        height: calc(100vh - 140px);
        bottom: 70px;
        right: 12px;
        left: auto;
        margin: 0;
        border-radius: 15px;
        max-width: 100%;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .chat-input-container {
        padding: 15px;
    }
    
    .landlord-chat-container {
        width: 95%;
        height: 90%;
        max-height: none;
    }
    
    .landlord-chat-messages {
        padding: 15px;
    }
    
    .landlord-chat-input-container {
        padding: 15px;
    }
}

/* ===== MOBILE PHONE ONLY (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* Hamburger menu styling */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        position: relative;
        z-index: 1001;
        width: 32px;
        height: 24px;
    }

    .hamburger span {
        width: 100%;
        height: 2.5px;
        background: var(--navy-blue);
        margin: 4px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Mobile menu animation */
    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        width: 100%;
        text-align: center;
        display: none;
        padding: 12px 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-bottom: 2px solid var(--red);
        gap: 8px;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-link {
        padding: 10px 15px;
        font-size: 0.85rem;
        margin-right: 0;
        width: 100%;
        border: none;
        border-bottom: 1px solid var(--gray-200);
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-btn {
        margin: 6px 15px 8px 15px;
        width: calc(100% - 30px);
        padding: 10px 16px;
        min-height: 44px;
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Hide social icons on very small screens */
    .nav-social {
        display: none !important;
    }

    /* Navbar fixes for mobile */
    .nav-container {
        height: 60px;
        padding: 0 8px;
        position: relative;
        gap: 8px;
    }
    
    .nav-logo {
        font-size: 1rem;
        gap: 3px;
        margin: 0;
        flex: 0 0 auto;
    }
    
    .nav-logo i {
        font-size: 1.1rem;
    }
    
    .nav-logo-img {
        width: 24px;
        height: 24px;
    }

    /* Hero section mobile */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 14px 16px;
        font-size: 0.95rem;
        min-height: 48px;
        border-radius: 8px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 12px;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-image {
        transform: scale(0.6);
        height: 250px;
    }

    /* Hero stats */
    .hero-stats {
        flex-direction: row;
        gap: 15px;
        margin-top: 20px;
        justify-content: flex-start;
    }

    .stat {
        flex: 1;
        padding: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Hero search fixes */
    .hero-search {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 15px;
    }

    #schoolSearchInput {
        width: 100%;
        padding: 10px 12px;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .search-btn {
        width: 100%;
        margin-left: 0;
        padding: 12px 12px;
        min-height: 44px;
        font-size: 0.9rem;
        justify-content: center;
    }

    .search-dropdown {
        width: 100%;
        max-height: 250px;
    }
    
    /* Grid cards on mobile */
    .dorms-grid {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }

    .dorm-card {
        border-radius: 8px;
    }

    .dorm-image {
        height: 180px;
    }
    
    .city-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Section styling */
    .for-students-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .hero-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .for-students-content {
        flex-direction: column;
        gap: 30px;
    }

    /* Feature items */
    .student-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-item {
        padding: 15px;
        gap: 12px;
    }

    .feature-item i {
        font-size: 1.8rem;
    }

    .feature-item h4 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .feature-item p {
        font-size: 0.85rem;
    }

    /* Process cards */
    .how-it-works {
        padding: 40px 0;
    }
    
    .process-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .process-card {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin: 0 auto 15px;
    }
    
    .process-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .process-card p {
        font-size: 0.85rem;
    }

    /* Modal responsive */
    .dorms-modal-content {
        width: 95vw;
        margin: 10% auto;
        max-height: 85vh;
    }

    .dorms-modal-header {
        padding: 16px 20px;
    }

    .dorms-modal-header h2 {
        font-size: 1.3rem;
    }

    .dorms-modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .dorms-grid {
        padding: 16px;
        max-height: 65vh;
        gap: 12px;
    }

    /* City preview cards */
    .cities-preview {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .city-preview-card {
        border-radius: 8px;
    }

    .city-preview-image {
        height: 150px;
    }

    /* Review form */
    .review-form {
        padding: 20px;
    }

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

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.95rem;
        padding: 10px;
        min-height: 44px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .form-buttons button {
        width: 100%;
        min-height: 44px;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
    }
}

/* ===== EXTRA SMALL PHONES (max-width: 480px) ===== */
@media (max-width: 480px) {
    .nav-container {
        height: 60px;
        padding: 0 8px;
    }

    .nav-logo {
        font-size: 1rem;
        gap: 3px;
    }

    .nav-logo i {
        font-size: 1.1rem;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
        margin: 3px 0;
    }

    .chat-widget {
        bottom: 15px;
        right: 15px;
        z-index: 10000 !important;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .chat-toggle i {
        font-size: 18px;
    }

    .chat-badge {
        position: absolute !important;
        top: -6px !important;
        right: -6px !important;
        width: 22px !important;
        height: 22px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 11px !important;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .hero {
        padding: 80px 0 50px;
    }

    .hero-image {
        transform: scale(0.5);
        height: 200px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 12px;
        font-size: 0.85rem;
        min-height: 42px;
    }

    .hero-search {
        gap: 6px;
        margin-top: 12px;
    }

    #schoolSearchInput {
        padding: 8px 10px;
        font-size: 0.85rem;
        min-height: 42px;
    }

    .search-btn {
        padding: 10px 10px;
        min-height: 42px;
        font-size: 0.8rem;
    }

    .search-dropdown {
        max-height: 200px;
        font-size: 0.85rem;
    }

    .hero-stats {
        gap: 10px;
        margin-top: 15px;
    }

    .stat {
        padding: 8px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .feature-item {
        padding: 12px;
        gap: 10px;
    }

    .feature-item i {
        font-size: 1.5rem;
    }

    .feature-item h4 {
        font-size: 0.95rem;
    }

    .feature-item p {
        font-size: 0.8rem;
    }

    .process-cards {
        gap: 15px;
    }

    .process-card {
        padding: 15px 12px;
    }

    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .process-card h3 {
        font-size: 0.95rem;
    }

    .process-card p {
        font-size: 0.8rem;
    }

    .dorm-image {
        height: 150px;
    }

    .dorm-card {
        border-radius: 6px;
    }

    .dorms-grid {
        padding: 10px;
    }

    .dorms-modal-content {
        width: 98vw;
        margin: 20% auto;
    }

    .dorms-modal-header h2 {
        font-size: 1.1rem;
    }

    .dorms-modal-header {
        padding: 12px 15px;
    }

    .review-form {
        padding: 15px;
    }

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

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.9rem;
        padding: 8px;
        min-height: 42px;
    }

    .form-group textarea {
        min-height: 80px;
    }

    .form-buttons button {
        min-height: 42px;
        font-size: 0.9rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.8rem;
    }

    .cities-preview {
        gap: 10px;
    }

    .city-preview-image {
        height: 120px;
    }
}

/* ===== SMALL PHONES (max-width: 360px) ===== */
@media (max-width: 360px) {
    .nav-logo {
        font-size: 0.9rem;
    }

    .hamburger span {
        width: 20px;
    }

    .nav-btn {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .chat-widget {
        bottom: 12px;
        right: 12px;
        z-index: 10000 !important;
    }

    .chat-toggle {
        width: 48px;
        height: 48px;
    }

    .chat-badge {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .btn-primary, .btn-secondary {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .dorm-image {
        height: 120px;
    }
}

/* ===== CHAT MODAL STYLES ===== */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.chat-modal.active {
    display: flex;
}

.chat-window-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: chatSlideUp 0.3s ease-out;
    position: relative;
    margin: auto;
}

.chat-window-modal .chat-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.chat-window-modal .chat-header-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chat-window-modal .chat-header-info p {
    margin: 5px 0 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.chat-window-modal .chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.chat-window-modal .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    margin-bottom: 8px;
}

.message p {
    margin: 0;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.bot-message p {
    background: #f3f4f6;
    color: #1f2937;
    border-bottom-left-radius: 4px;
}

.user-message {
    justify-content: flex-end;
}

.user-message p {
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-window-modal .chat-input-container {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    background: white;
    border-radius: 0 0 16px 16px;
}

.chat-window-modal .chat-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-window-modal .chat-input:focus {
    border-color: #3b82f6;
}

.chat-window-modal .chat-send-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-window-modal .chat-send-btn:hover {
    background: #1d4ed8;
}

/* Mobile Chat Modal */
@media (max-width: 768px) {
    .chat-modal {
        padding: 12px;
        align-items: center;
        justify-content: center;
    }

    .chat-window-modal {
        width: calc(100vw - 24px);
        height: calc(100vh - 24px);
        max-width: none;
        max-height: 90vh;
        border-radius: 12px;
    }

    .chat-window-modal .chat-header {
        padding: 16px;
        border-radius: 12px 12px 0 0;
    }

    .chat-window-modal .chat-messages {
        padding: 15px;
    }

    .chat-window-modal .chat-input-container {
        padding: 12px 15px;
        border-radius: 0 0 12px 12px;
    }

    .chat-window-modal .chat-input {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .chat-modal {
        padding: 8px;
    }

    .chat-window-modal {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        max-height: 95vh;
    }

    .chat-window-modal .chat-header {
        padding: 12px;
        font-size: 0.9rem;
    }

    .chat-window-modal .chat-header-info h3 {
        font-size: 0.95rem;
    }

    .chat-window-modal .chat-header-info p {
        font-size: 0.75rem;
    }

    .message p {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .chat-window-modal .chat-send-btn {
        width: 36px;
        height: 36px;
    }
}

