:root {
    /* Orange Color Palette - SafeHotel Brand */
    --primary-orange: #ff751f;
    --primary-orange-dark: #e66610;
    --primary-orange-light: #ff8c42;
    --accent-green: #2ECC71;
    --accent-blue: #3498DB;
    
    /* Neutrals */
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #6B6B6B;
    --border-color: #E0E0E0;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-lighter: #FAFBFC;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    --radius: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 44px;
    width: auto;
}

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

.nav-menu a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary-orange);
}

.nav-chat-btn {
    background: var(--primary-orange);
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
}

.nav-chat-btn:hover {
    background: var(--primary-orange-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #FFF5F1 0%, #FFFFFF 100%);
    padding: 60px 0 80px;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 40px;
}

/* Search Card */
.search-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
}

.search-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.input-group input,
.input-group select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-white);
    transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.search-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Quick Stats */
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-item strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-orange);
}

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

/* Sections */
.section-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    font-size: 16px;
    margin-bottom: 40px;
}

/* Why Section */
.why-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-box {
    text-align: center;
    padding: 32px 24px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-box p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Neighborhoods Section */
.neighborhoods-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.neighborhood-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.neighborhood-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.neighborhood-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-placeholder {
    color: white;
    font-size: 24px;
    font-weight: 700;
    opacity: 0.9;
}

.neighborhood-content {
    padding: 20px;
}

.safety-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.safety-badge.excellent {
    background: #D4EDDA;
    color: #155724;
}

.neighborhood-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.crime-stat {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 12px;
}

.crime-stat strong {
    color: var(--accent-green);
    font-weight: 600;
}

.description {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 16px;
}

.view-hotels-btn {
    display: inline-block;
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: gap 0.2s;
}

.view-hotels-btn:hover {
    color: var(--primary-orange-dark);
}

/* Tips Section */
.tips-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.tips-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tips-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.tip-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.tip-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.tip-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.tip-item p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
}

.chat-cta-btn {
    margin-top: 24px;
    padding: 14px 28px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-cta-btn:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-1px);
}

.safety-map-placeholder {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    border: 2px dashed var(--border-color);
}

.safety-map-placeholder h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.map-visual {
    font-size: 64px;
    margin: 20px 0;
}

.safety-map-placeholder p {
    color: var(--text-medium);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-btn {
    padding: 16px 40px;
    background: white;
    color: var(--primary-orange);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 36px;
    width: auto;
}

.footer-col p {
    opacity: 0.8;
    line-height: 1.6;
    font-size: 14px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

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

.footer-col ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    font-size: 14px;
    transition: opacity 0.2s;
}

.footer-col ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 14px;
}

/* Chat Widget */
.chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-orange);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1000;
}

.chat-button:hover {
    transform: scale(1.1);
    background: var(--primary-orange-dark);
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
}

.chat-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 420px;
    height: 600px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

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

.chat-header {
    background: var(--primary-orange);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-title {
    font-size: 15px;
    font-weight: 700;
}

.chat-status {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-minimize {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-lighter);
}

.bot-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: slideIn 0.3s;
}

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.message-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: var(--radius);
    max-width: 85%;
    box-shadow: var(--shadow-sm);
}

.message-bubble p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-bubble ul {
    margin: 8px 0 8px 20px;
    font-size: 14px;
}

.message-bubble li {
    margin-bottom: 4px;
}

.user-message {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    animation: slideIn 0.3s;
}

.user-message .message-bubble {
    background: var(--primary-orange);
    color: white;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    background: var(--bg-white);
}

#chatInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    font-family: inherit;
}

#chatInput:focus {
    outline: none;
    border-color: var(--primary-orange);
}

#chatSend {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-orange);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#chatSend:hover {
    background: var(--primary-orange-dark);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .search-inputs {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        gap: 24px;
    }
    
    .tips-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}
