/* EzySearch Styles - Mobile-First Responsive Design */

/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

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

/* Root font size for responsive rem units */
html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: white;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Hamburger Menu Button - Mobile Optimized */
.hamburger-menu {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    width: 48px; /* Larger touch target */
    height: 48px;
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.hamburger-menu:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 3px;
    background: #202124;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Sidebar - Mobile Responsive */
.sidebar {
    position: fixed;
    top: 0;
    left: -51vw; /* Reduced from 85vw - 60% of original */
    width: 51vw; /* 60% of original 85vw */
    max-width: 192px; /* 60% of original 320px */
    height: 100vh;
    background: #2c2c2c;
    color: white;
    z-index: 1002;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.sidebar.active {
    left: 0;
}

/* Sidebar Header */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #404040;
    position: relative;
}

.close-sidebar {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.close-sidebar:hover {
    background: #404040;
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.profile-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.login-signup {
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    cursor: pointer;
    padding: 8px 20px;
    border: 1px solid #667eea;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.login-signup:hover {
    background: #667eea;
    color: white;
}

/* Sidebar Theme Toggle */
.sidebar-theme-toggle {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #404040;
}

.sidebar-theme-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
}

.sidebar-theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

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

.sidebar-theme-btn .theme-icon {
    position: relative;
    transition: all 0.3s ease;
}

.sidebar-theme-btn .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.sidebar-theme-btn .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    position: absolute;
    left: 0;
}

body.dark-theme .sidebar-theme-btn .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

body.dark-theme .sidebar-theme-btn .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle-text {
    display: flex;
    align-items: center;
}

.light-mode-text {
    display: inline;
}

.dark-mode-text {
    display: none;
}

body.dark-theme .light-mode-text {
    display: none;
}

body.dark-theme .dark-mode-text {
    display: inline;
}


/* Sidebar Navigation */
.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #383838;
    border-left-color: #667eea;
    color: white;
}

.nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-weight: 400;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Language Selector - Mobile Optimized */
.language-selector {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    min-width: 85px; /* Reduced from 100px */
}

.language-selector select {
    width: 100%;
    padding: 8px 10px; /* Reduced padding */
    font-size: 13px; /* Reduced from 14px */
    border: 1px solid #dfe1e5;
    border-radius: 20px;
    background: white;
    color: #3c4043;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233c4043' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center; /* Adjusted position */
    padding-right: 28px; /* Reduced from 36px */
    -webkit-tap-highlight-color: transparent;
}

/* Dark theme color scheme */
body.dark-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
}

body.dark-theme .search-input-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-theme .search-box {
    background: transparent;
    color: #e0e0e0;
}

body.dark-theme .search-box::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-theme .search-icon-btn,
body.dark-theme .voice-icon-btn {
    color: #e0e0e0;
}

body.dark-theme .search-icon-btn:hover,
body.dark-theme .voice-icon-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

body.dark-theme .sidebar {
    background: #1a1a2e;
}

body.dark-theme .language-selector select {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-theme .logo,
body.dark-theme .logo-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .continue-chat {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

body.dark-theme .next-search-box {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-theme .suggestion-btn {
    background: rgba(102, 126, 234, 0.2);
    color: #e0e0e0;
    border: 1px solid rgba(102, 126, 234, 0.5);
}

body.dark-theme .chat-message {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

body.dark-theme .chat-query-header {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

body.dark-theme .hamburger-menu {
    background: rgba(26, 26, 46, 0.9);
}

body.dark-theme .hamburger-menu span {
    background: #e0e0e0;
}

body.dark-theme .hamburger-menu:hover {
    background: rgba(26, 26, 46, 1);
}

.language-selector select:hover {
    border-color: #4285f4;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.language-selector select:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66,133,244,0.2);
}

/* Translation Toggle */
.translation-toggle {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.toggle-text {
    color: #5f6368;
    font-size: 11px;
    line-height: 1.2;
}

.toggle-label:hover .toggle-text {
    color: #202124;
}

/* Center mode - when no results */
.center-mode {
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
}

/* Top mode - when there are results */
.top-mode {
    justify-content: flex-start;
    padding-top: 20px;
}

/* Logo - Responsive Sizing */
.logo {
    font-size: clamp(48px, 12vw, 90px); /* Fluid typography */
    color: #4285f4;
    font-weight: normal;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
}

.logo-small {
    font-size: clamp(20px, 5vw, 24px); /* Fluid typography */
    color: #4285f4;
    font-weight: normal;
    margin-bottom: 15px;
    text-align: center;
}

/* Search Container - Mobile First */
.search-container {
    width: 100%;
    max-width: 584px;
    margin: 0 auto;
    padding: 0 15px; /* Reduced padding for mobile */
}

.search-form {
    position: relative;
    width: 100%;
}

/* Search Input Wrapper - Touch Friendly */
.search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    box-shadow: 0 2px 5px 1px rgba(64,60,67,.16);
    transition: all 0.3s ease;
    padding-right: 4px;
    min-height: 48px; /* Ensure minimum touch target size */
}

.search-input-wrapper:focus-within {
    box-shadow: 0 2px 8px 1px rgba(64,60,67,.24);
    border-color: #4285f4;
}

/* Search Icon Button (Submit) */
.search-icon-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #5f6368;
    margin-left: 4px;
}

.search-icon-btn:hover {
    background: #f1f3f4;
    color: #202124;
}

.search-icon-btn:active {
    transform: scale(0.95);
}

/* Voice Icon Button */
.voice-icon-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #5f6368;
}

.voice-icon-btn:hover {
    background: #f1f3f4;
    color: #202124;
}

.voice-icon-btn:active {
    transform: scale(0.95);
}

.voice-icon-btn.listening {
    animation: voice-pulse 0.8s infinite;
    color: #ea4335;
    background: #fce8e6;
}

@keyframes voice-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.search-box {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 16px;
    background: transparent;
}

/* Remove old mic button styles - keeping for backward compatibility */
.mic-btn-small {
    display: none;
}

.search-buttons {
    text-align: center;
    margin-top: 30px;
}

.search-btn {
    background: #f8f9fa;
    border: 1px solid #f8f9fa;
    border-radius: 4px;
    color: #3c4043;
    cursor: pointer;
    font-size: 14px;
    margin: 11px 4px;
    min-width: 54px;
    padding: 0 16px;
    line-height: 27px;
    height: 36px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-btn:hover {
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    color: #202124;
}

/* Results styling */
.results-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 20px;
    font-family: 'Courier New', monospace;
    background: #000;
    color: #fff;
    border-radius: 8px;
}

/* Table styling */
.results-table {
    width: 100%;
    margin-top: 20px;
}

.table-header {
    display: grid;
    grid-template-columns: 40px 1fr 1.2fr 1.1fr 1fr 1.2fr 0.8fr 0.9fr 1.5fr;
    gap: 10px;
    padding: 12px 15px;
    background: #333;
    border-radius: 8px;
    font-weight: bold;
    color: #ffffff;
    border: 1px solid #666;
    font-size: 12px;
}

.table-row {
    display: grid;
    grid-template-columns: 40px 1fr 1.2fr 1.1fr 1fr 1.2fr 0.8fr 0.9fr 1.5fr;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    align-items: center;
    color: #ffffff;
}

.table-row:hover {
    background: #222;
}

.product-row {
    background: #001100;
}

.vendor-row {
    background: #000011;
}

.property-row {
    background: #001100;
}

.col-num {
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}

.col-product {
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
}

.col-vendor {
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
}

.col-price {
    color: #ffffff;
    font-weight: bold;
    text-align: right;
    font-size: 13px;
}

.col-contact {
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-location {
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-extra {
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    text-align: right;
}

.col-extra2 {
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    text-align: right;
}

.col-extra3 {
    color: #ffffff;
    font-weight: bold;
    font-size: 11px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Terminal-style result colors */
.header { color: #00ff00; }
.info { color: #ffffff; }
.section { color: #00ffff; font-weight: bold; }
.product { color: #00ff00; }
.vendor { color: #00ffff; }
.details { color: #ffffff; }
.subcategory { color: #ffff00; }
.category { color: #ff00ff; }
.timing { color: #00ff00; font-weight: bold; }
.error { color: #ff0000; font-weight: bold; }

/* Keyword Match Highlighting */
.match-highlight {
    background: #444444;
    color: #ffffff;
    font-weight: bold;
    padding: 1px 2px;
    border-radius: 2px;
    border: 1px solid #666666;
}

.match-indicator {
    color: #00ff00;
    font-weight: bold;
    font-size: 12px;
    background: #004400;
    padding: 1px 4px;
    border-radius: 2px;
    margin: 0 2px;
}

.match-info {
    color: #ffff00;
    font-size: 13px;
    font-weight: bold;
    display: block;
    margin-top: 2px;
}

/* Continue Chat Styling */
.continue-chat {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e8eaed;
}

.chat-header {
    text-align: center;
    margin-bottom: 20px;
}

.chat-header h3 {
    color: #202124;
    font-size: 20px;
    margin-bottom: 5px;
}

.chat-header p {
    color: #5f6368;
    font-size: 14px;
}

.next-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.next-search-box {
    flex: 1;
    max-width: 500px;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    outline: none;
    transition: border-color 0.3s ease;
}

.next-search-box:focus {
    border-color: #4285f4;
}

.next-search-btn {
    padding: 12px 24px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.next-search-btn:hover {
    background: #3367d6;
}

.quick-suggestions {
    text-align: center;
}

.quick-suggestions p {
    margin-bottom: 10px;
    color: #202124;
    font-weight: 500;
}

.suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.suggestion-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #3c4043;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    color: #4285f4;
}

.clear-chat-btn {
    background: #ea4335;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.clear-chat-btn:hover {
    background: #d33b2c;
}

.search-history {
    margin: 15px 0;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8eaed;
}

.search-history p {
    margin-bottom: 8px;
    color: #5f6368;
    font-size: 13px;
}

.history-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.history-item {
    background: #f1f3f4;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: #3c4043;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #e8f0fe;
    border-color: #4285f4;
    color: #1a73e8;
}

/* Chat History Styling - Never Ending Display */
.chat-history {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.chat-message {
    margin-bottom: 40px;
    border-bottom: 1px solid #e8eaed;
    padding-bottom: 30px;
}

.chat-message:last-child {
    border-bottom: none;
    margin-bottom: 20px;
}

.chat-query-header {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border: 1px solid #e8eaed;
}

.chat-timestamp {
    color: #5f6368;
    font-size: 12px;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid #dadce0;
}

.chat-query {
    color: #1a73e8;
    font-weight: 500;
    flex: 1;
}

.chat-count {
    color: #34a853;
    font-size: 12px;
    background: #e8f5e8;
    padding: 4px 8px;
    border-radius: 10px;
}

.chat-results {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

/* Price Analysis Panel */
.price-analysis-panel {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    color: white;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.price-analysis-panel h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-insight {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
    border-left: 4px solid #81c784;
    font-size: 0.95em;
    line-height: 1.4;
}

/* Responsive Design for Price Analysis */
@media (max-width: 768px) {
    .price-analysis-panel {
        padding: 15px;
        margin: 10px 0;
    }
    
    .price-insight {
        padding: 10px;
        font-size: 0.9em;
    }
}

/* Smart Insights Panel */
.smart-insights-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.smart-insights-panel h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insight-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #4ecdc4;
}

.insight-section h4 {
    margin: 0 0 10px 0;
    color: #4ecdc4;
    font-size: 1.1em;
}

.insight-section p {
    margin: 5px 0;
    line-height: 1.4;
}

.price-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.price-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.price-value {
    font-weight: bold;
    color: #4ecdc4;
    font-size: 1.2em;
}

/* Contextual Suggestions */
.contextual-suggestions {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    color: white;
}

.contextual-suggestions h4 {
    margin: 0 0 10px 0;
    color: white;
}

.follow-up-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.follow-up-pill {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.follow-up-pill:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* Enhanced Suggestion Pills */
.suggestion-pill {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    margin: 2px;
}

.suggestion-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

/* Responsive Design for Smart Features */
@media (max-width: 768px) {
    .smart-insights-panel {
        padding: 15px;
        margin: 10px 0;
    }
    
    .price-comparison {
        grid-template-columns: 1fr;
    }
    
    .insight-section {
        padding: 10px;
    }
    
    .contextual-suggestions {
        padding: 10px;
    }
    
    .follow-up-suggestions {
        justify-content: center;
    }
    
    .ai-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .ai-btn {
        font-size: 14px;
        padding: 10px 15px;
    }
}

/* ========================================
   AI ANALYSIS PANEL STYLES
   ======================================== */

.ai-analysis-panel {
    background: linear-gradient(145deg, #f8f9ff 0%, #e8f2ff 100%);
    border: 2px solid #4285f4;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.1);
}

.ai-analysis-panel h3 {
    color: #1a73e8;
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-analysis-panel p {
    color: #5f6368;
    margin-bottom: 15px;
    font-size: 14px;
}

.ai-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.ai-btn {
    background: linear-gradient(145deg, #4285f4 0%, #1a73e8 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.ai-btn:hover {
    background: linear-gradient(145deg, #1a73e8 0%, #1557b0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.ai-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3);
}

.ai-btn:disabled {
    background: #9aa0a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ai-loading {
    text-align: center;
    padding: 20px;
    color: #1a73e8;
    font-size: 16px;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #e8f2ff;
}

.loading-spinner {
    font-size: 20px;
    animation: spin 1s linear infinite;
}

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

.ai-results-container {
    margin-top: 15px;
}

.ai-analysis-header {
    background: linear-gradient(145deg, #1a73e8 0%, #1557b0 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
}

.ai-analysis-content {
    background: white;
    padding: 20px;
    border: 2px solid #1a73e8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #202124;
}

.ai-analysis-content br {
    margin: 8px 0;
}

/* Special button styles for different analysis types */
.ai-summary {
    background: linear-gradient(145deg, #34a853 0%, #137333 100%);
}

.ai-summary:hover {
    background: linear-gradient(145deg, #137333 0%, #0d652d 100%);
}

.ai-compare {
    background: linear-gradient(145deg, #ea4335 0%, #d33b2c 100%);
}

.ai-compare:hover {
    background: linear-gradient(145deg, #d33b2c 0%, #b52d20 100%);
}

.ai-advice {
    background: linear-gradient(145deg, #fbbc04 0%, #f9ab00 100%);
    color: #202124;
}

.ai-advice:hover {
    background: linear-gradient(145deg, #f9ab00 0%, #e37400 100%);
}

/* ========================================
   CONSTRUCTION GUIDE STYLES
   ======================================== */

.construction-guide-panel {
    background: #ffffff;
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.1);
}

.construction-guide-panel h3 {
    color: #000000;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #2196f3;
    padding-bottom: 10px;
    font-weight: bold;
}

.construction-overview {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #28a745;
}

.construction-overview h4 {
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.project-details span {
    background: #ffffff;
    color: #000000;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #28a745;
    font-weight: bold;
}

.cost-estimate-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #dc3545;
}

.cost-estimate-section h4 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.total-cost-highlight {
    background: #28a745;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.cost-breakdown-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
}

.cost-breakdown-table th,
.cost-breakdown-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    color: #000000;
    font-weight: bold;
}

.cost-breakdown-table th {
    background: #343a40;
    color: white;
    font-weight: bold;
}

.cost-breakdown-table tr:nth-child(even) {
    background: #f8f9fa;
}

.cost-breakdown-table tr:hover {
    background: #e9ecef;
}

.phase-wise-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #007bff;
}

.phase-wise-section h4 {
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.phase-item {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #007bff;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.phase-item strong {
    color: #000000;
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.phase-item span {
    color: #000000;
    font-weight: bold;
}

.materials-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #6f42c1;
}

.materials-section h4 {
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.material-item {
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #6f42c1;
    text-align: center;
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.1);
}

.material-item strong {
    color: #000000;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.material-item span {
    color: #000000;
    font-size: 14px;
    font-weight: bold;
}

.checklist-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #28a745;
}

.checklist-section h4 {
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.checklist-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.checklist-item {
    background: #ffffff;
    color: #000000;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid #28a745;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.1);
    font-weight: bold;
}

.tips-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #fd7e14;
}

.tips-section h4 {
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.tip-item {
    background: #ffffff;
    color: #000000;
    padding: 12px;
    border-radius: 5px;
    border-left: 4px solid #fd7e14;
    box-shadow: 0 1px 3px rgba(253, 126, 20, 0.1);
    font-weight: bold;
}

.action-section {
    background: #007bff;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.action-section h4 {
    color: white;
    margin-bottom: 10px;
    font-weight: bold;
}

.action-section p {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

/* Export PDF Button Styles */
.export-section {
    margin-top: 20px;
}

.export-pdf-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.export-pdf-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.export-pdf-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.export-pdf-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Real Estate Guide Styles */
.realestate-guide-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.realestate-guide-panel h2 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.realestate-guide-panel h3 {
    color: #fff;
    margin: 15px 0 10px 0;
    font-size: 18px;
}

.search-params {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.search-params div {
    margin: 5px 0;
}

.properties-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

.properties-table th {
    background: #4a5568;
    color: white;
    padding: 6px;
    text-align: center;
    font-weight: 600;
    min-width: 80px;
    white-space: nowrap;
    font-size: 11px;
}

.properties-table td {
    padding: 6px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    min-width: 80px;
    white-space: nowrap;
    font-size: 11px;
}

/* Contact columns now use same styling as other columns */

.properties-table tr:nth-child(even) {
    background-color: #f7fafc;
}

.properties-table tr:hover {
    background-color: #e2e8f0;
}

.market-analysis {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.investment-insights {
    margin: 10px 0;
}

.investment-insights div {
    margin: 5px 0;
    padding-left: 10px;
}

.market-trends {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.market-trends div {
    margin: 5px 0;
    padding-left: 10px;
}

.no-properties {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 15px 0;
}

/* Mobile responsive styles for construction guide */
@media (max-width: 768px) {
    .construction-guide-panel {
        padding: 15px;
        margin: 10px 0;
    }
    
    .project-details {
        grid-template-columns: 1fr;
    }
    
    .phases-grid,
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .cost-breakdown-table {
        font-size: 14px;
    }
    
    .cost-breakdown-table th,
    .cost-breakdown-table td {
        padding: 8px;
    }
    
    .realestate-guide-panel {
        padding: 15px;
        margin: 10px 0;
    }
    
    .properties-table {
        font-size: 11px;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
        width: 100%;
    }
    
    .properties-table th,
    .properties-table td {
        padding: 4px;
        min-width: 80px;
        text-align: center;
    }
    
    .properties-table thead,
    .properties-table tbody,
    .properties-table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    /* Make table scrollable horizontally on mobile */
    .properties-table {
        max-width: 100%;
        overflow-x: scroll;
    }
    
    /* Responsive design for clean table format */
    .results-table {
        overflow-x: auto;
        font-size: 11px;
    }
    
    .table-header, .table-row {
        grid-template-columns: 30px 1fr 1fr 1fr 1.2fr 1fr;
        gap: 8px;
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .col-contact, .col-location {
        font-size: 10px;
        line-height: 1.2;
    }
}

/* ===== VOICE SEARCH STYLES ===== */

/* Voice Modal Overlay */
.voice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

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

.voice-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    animation: modalFadeIn 0.3s ease;
    position: relative; /* For positioning cancel button */
}

/* Voice Cancel Button */
.voice-cancel-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 0, 0, 0.1);
    color: #e74c3c;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.voice-cancel-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #c0392b;
    transform: scale(1.1);
}

.voice-cancel-btn:active {
    transform: scale(0.95);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.voice-modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: mic-pulse-modal 1s infinite;
}

@keyframes mic-pulse-modal {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.voice-modal-text {
    font-size: 24px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 30px;
}

/* Voice Wave Animation */
.voice-modal-animation {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    height: 50px;
}

.wave {
    width: 6px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    animation: wave-animation 1s infinite ease-in-out;
}

.wave:nth-child(1) { animation-delay: 0s; }
.wave:nth-child(2) { animation-delay: 0.1s; }
.wave:nth-child(3) { animation-delay: 0.2s; }
.wave:nth-child(4) { animation-delay: 0.3s; }
.wave:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave-animation {
    0%, 100% {
        height: 20px;
    }
    50% {
        height: 50px;
    }
}

.voice-search-container {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.voice-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    justify-content: center;
}

.voice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

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

.voice-btn.listening {
    background: #ff4757;
    color: white;
    animation: pulse 1.5s infinite;
}

.mic-icon {
    font-size: 24px;
    animation: none;
}

.voice-btn.listening .mic-icon {
    animation: mic-pulse 0.8s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }
}

@keyframes mic-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.voice-transcription {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.transcription-label {
    font-weight: 600;
    color: #667eea;
    margin-right: 8px;
}

.transcription-text {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 500;
}

.voice-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    flex-wrap: wrap;
    gap: 10px;
}

.voice-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.voice-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.voice-control-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

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

/* Voice status indicators */
.voice-status {
    font-size: 14px;
    font-weight: 500;
}

.voice-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.voice-btn:disabled:hover {
    transform: none;
}

/* Responsive voice UI */
@media (max-width: 768px) {
    .voice-search-container {
        padding: 12px;
    }
    
    .voice-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .voice-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .voice-control-btn {
        width: 100%;
    }
}

/* Universal Search Styles - NO MORE TIGHT COUPLING! */
.universal-search-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.universal-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

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

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

/* Universal Results Container */
.universal-results-container {
    margin: 20px auto;
    max-width: 1200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.universal-results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.universal-results-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.results-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9em;
    opacity: 0.9;
}

.results-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Table Section Styles */
.table-section {
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.table-section .table-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f0fe 100%);
    padding: 20px;
    border-bottom: 2px solid #4285f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-section .table-header h4 {
    margin: 0;
    color: #374151;
    font-size: 1.1em;
    line-height: 1.5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
}

/* ============================================================================
   OPTIMIZED RESULT CARD STYLES - MODERN & PROFESSIONAL
   ============================================================================ */

.result-card {
    background: white;
    border: 2px solid #e0e7ff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.result-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #6366f1;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-bottom: none;
}

.category-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.category-tag .category-icon {
    font-size: 1.5em;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.category-tag strong {
    color: white;
    font-size: 1.4em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 0.3px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.location-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05em;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.location-tag .location-icon {
    color: #fbbf24;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    font-size: 1.1em;
}

.card-body {
    padding: 24px;
    background: white;
}

.description-content {
    color: #374151;
    line-height: 1.8;
    font-size: 1.05rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.description-list {
    font-size: 1rem;
    line-height: 1.9;
    font-family: 'Inter', sans-serif;
}

.description-list br {
    margin-bottom: 8px;
}

/* Enhanced Two-Column Property Details Layout */
.property-details-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 12px 0;
    padding: 16px;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.property-details-two-column .left-column,
.property-details-two-column .right-column {
    font-size: 1.05rem;
    line-height: 2;
    color: #1f2937;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.2px;
}

.property-details-two-column .left-column {
    border-right: 2px solid #e5e7eb;
    padding-right: 20px;
}

.property-details-two-column .right-column {
    padding-left: 4px;
}

/* Icon Styling in Cards */
.property-details-two-column .left-column span,
.property-details-two-column .right-column span {
    margin-right: 6px;
}

/* Price Highlighting */
.property-details-two-column .left-column strong,
.property-details-two-column .right-column strong {
    color: #059669;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

/* Card Footer */
.card-footer {
    background: #f8fafc;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

.card-footer .text-muted {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

/* Responsive: Single column on mobile */
@media (max-width: 768px) {
    .property-details-two-column {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px;
    }
    
    .property-details-two-column .left-column {
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 16px;
    }
    
    .property-details-two-column .right-column {
        padding-left: 0;
        padding-top: 4px;
    }
}

/* ============================================================================
   DARK THEME - RESULT CARDS
   ============================================================================ */

body.dark-theme .result-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

body.dark-theme .result-card:hover {
    border-color: #818cf8;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

body.dark-theme .card-header {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

body.dark-theme .category-tag strong {
    color: #e0e7ff;
}

body.dark-theme .location-tag {
    color: rgba(226, 232, 240, 0.9);
}

body.dark-theme .location-tag .location-icon {
    color: #fbbf24;
}

body.dark-theme .card-body {
    background: #1e293b;
}

body.dark-theme .description-content {
    color: #cbd5e1;
}

body.dark-theme .property-details-two-column {
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    border-color: #334155;
}

body.dark-theme .property-details-two-column .left-column,
body.dark-theme .property-details-two-column .right-column {
    color: #e2e8f0;
}

body.dark-theme .property-details-two-column .left-column {
    border-right-color: #334155;
}

body.dark-theme .property-details-two-column .left-column strong,
body.dark-theme .property-details-two-column .right-column strong {
    color: #34d399;
}

body.dark-theme .card-footer {
    background: #0f172a;
    border-top-color: #334155;
}

body.dark-theme .card-footer .text-muted {
    color: #94a3b8;
}

@media (max-width: 768px) {
    body.dark-theme .property-details-two-column .left-column {
        border-right: none;
        border-bottom-color: #334155;
    }
}

/* No Results Styles */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-results-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #374151;
    margin-bottom: 10px;
}

.suggestions {
    margin: 30px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.suggestions h4 {
    color: #374151;
    margin-bottom: 15px;
}

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

.suggestions li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.example-searches {
    margin-top: 30px;
}

.example-searches h4 {
    color: #374151;
    margin-bottom: 15px;
}

.example-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.example-pill {
    display: inline-block;
    padding: 8px 15px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-pill:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.stat-name {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.stat-count {
    font-size: 1.5em;
    font-weight: bold;
    color: #6366f1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .results-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .example-pills {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* View More Button Styles */
.view-more-container {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 2px dashed #e5e7eb;
}

.view-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    outline: none;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.view-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

/* More Results Section */
.more-results {
    animation: slideDown 0.4s ease-out;
    margin-top: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 10000px;
    }
}

/* Price Badge Styles */
.price-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95em;
    margin: 5px 0;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.lowest-price-badge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    padding: 8px 15px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 3px 10px rgba(17, 153, 142, 0.4);
}

/* View More Button Styles */
.view-more-container {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 2px dashed #e5e7eb;
}

.view-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    outline: none;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.view-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.more-results {
    animation: slideDown 0.4s ease-out;
    margin-top: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 10000px;
    }
}

.price-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95em;
    margin: 5px 0;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

/* Table Header Span Styles for Better Alignment */
.table-section .table-header h4 .category-emoji {
    font-size: 1.3em;
    margin-right: 8px;
}

.table-section .table-header h4 .category-name {
    font-weight: 700;
    color: #1e40af;
    margin-right: 8px;
}

.table-section .table-header h4 .results-info {
    font-weight: 600;
    color: #059669;
    margin-right: 8px;
}

.table-section .table-header h4 .sort-info {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.95em;
}

/* Responsive table header for mobile */
@media (max-width: 768px) {
    .table-section .table-header h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .table-section .table-header h4 .sort-info {
        font-size: 0.85em;
    }
}

/* ============================================
   SEARCH PAGE SPECIFIC STYLES
   ============================================ */

body.search-page {
    background: #f5f5f5;
    padding-top: 80px; /* Space for fixed header */
}

/* Search Header (Fixed at Top) */
.search-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 12px 80px 12px 80px; /* Space for hamburger and language selector */
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

/* Search Logo Icon */
.search-logo-icon {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
}

.search-logo-icon:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
}

.search-logo-icon svg {
    display: block;
}

/* Search Logo Text */
.search-logo-text {
    color: #4285f4;
    text-decoration: none;
    font-size: 20px; /* Reduced from 24px */
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 6px 10px; /* Reduced padding */
    border-radius: 8px;
    white-space: nowrap;
}

.search-logo-text:hover {
    color: #1976d2;
    background: rgba(66, 133, 244, 0.1);
    transform: scale(1.05);
}

.search-input-container {
    flex: 1;
    max-width: 700px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 4px 4px 4px 20px;
    transition: all 0.3s ease;
    gap: 8px;
}

.search-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.search-box {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 12px 8px;
    background: transparent;
    color: #333;
}

.search-box::placeholder {
    color: #999;
}

/* Icon Buttons */
.search-icon-btn,
.voice-icon-btn {
    background: transparent;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-icon-btn:hover,
.voice-icon-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #764ba2;
    transform: scale(1.1);
}

.search-icon-btn:active,
.voice-icon-btn:active {
    transform: scale(0.95);
}

.voice-icon-btn.listening {
    color: #ff6b6b;
    animation: pulse-icon 1.5s infinite;
}

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

/* Loading Indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #666;
}

/* Results Container */
.results-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.results-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.results-header h3 {
    color: #333;
    margin-bottom: 10px;
}

.results-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #666;
}

.results-meta span {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 15px;
}

.results-content {
    display: block; /* Results will be injected here */
}

/* No Results State */
.no-results {
    background: white;
    padding: 60px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    margin-bottom: 30px;
}

/* Error Message */
.error-message {
    background: #fff3f3;
    border: 2px solid #ff6b6b;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.error-message h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
}

.error-message p {
    color: #666;
}

/* Initial Search Message */
.initial-search-message {
    background: white;
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.initial-search-message p {
    font-size: 1.1rem;
    color: #666;
}

/* Voice Modal Styles (same as home page) */
.voice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

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

.voice-modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.voice-modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite;
}

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

.voice-modal-text {
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.voice-modal-animation {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.wave {
    width: 8px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    animation: wave 1.2s ease-in-out infinite;
}

.wave:nth-child(1) { animation-delay: 0s; }
.wave:nth-child(2) { animation-delay: 0.1s; }
.wave:nth-child(3) { animation-delay: 0.2s; }
.wave:nth-child(4) { animation-delay: 0.3s; }
.wave:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 20px; }
    50% { height: 50px; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body.search-page {
        padding-top: 140px; /* More space for wrapped header */
    }
    
    .search-header {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    
    .search-logo {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .search-input-container {
        max-width: 100%;
    }
    
    .language-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .results-container {
        padding: 0 10px;
    }
}

/* Quick Access Cards - Modern Redesign */
.quick-access-section {
    width: 100%;
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 30px;
}

.quick-access-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 45px;
    letter-spacing: -0.8px;
    text-transform: none;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-access-card {
    background: transparent;
    border-radius: 0;
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    position: relative;
    overflow: visible;
    border: none;
}

.quick-access-card::before {
    display: none;
}

.quick-access-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
    border-color: transparent;
}

.quick-access-card:active {
    transform: translateY(-2px);
}

.quick-access-icon {
    width: 130px;
    height: 130px;
    border-radius: 26px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba225 100%);
    color: #667eea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    margin-bottom: 16px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
    transition: transform 0.3s ease;
    position: relative;
}

.quick-access-icon::after {
    display: none;
}

.quick-access-card:hover .quick-access-icon {
    transform: scale(1.1);
}

.quick-access-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    transition: none;
    letter-spacing: -0.02em;
}

.quick-access-card:hover .quick-access-text {
    color: #1a1a1a;
    font-weight: 700;
}

/* TTD Icon - Special Image Styling */
.quick-access-icon.ttd-icon {
    background: transparent;
    padding: 0;
    overflow: visible;
    box-shadow: none;
    border-radius: 0;
}

.ttd-icon-img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    display: block;
    margin: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.quick-access-card:hover .ttd-icon-img {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
}

/* Medical & Health Icon - Image styling */
.quick-access-icon.health-icon {
    background: transparent;
    padding: 0;
    overflow: visible;
    box-shadow: none;
    border-radius: 0;
}

.health-icon-img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    display: block;
    margin: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.quick-access-card:hover .health-icon-img {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quick-access-section {
        padding: 0 20px;
        margin: 35px auto;
    }
    
    .quick-access-title {
        font-size: 28px;
        font-weight: 800;
        margin-bottom: 30px;
        letter-spacing: -0.6px;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .quick-access-card {
        padding: 15px 8px;
        min-height: auto;
    }
    
    .quick-access-icon {
        width: 105px;
        height: 105px;
        font-size: 58px;
        margin-bottom: 12px;
        border-radius: 22px;
    }
    
    .ttd-icon-img,
    .health-icon-img {
        width: 105px;
        height: 105px;
    }
    
    .quick-access-text {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: -0.02em;
    }
}

@media (max-width: 420px) {
    .quick-access-title {
        font-size: 24px;
        font-weight: 800;
        letter-spacing: -0.5px;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    
    .quick-access-card {
        padding: 12px 6px;
        min-height: auto;
    }
    
    .quick-access-icon {
        width: 90px;
        height: 90px;
        font-size: 50px;
        border-radius: 20px;
    }
    
    .ttd-icon-img,
    .health-icon-img {
        width: 90px;
        height: 90px;
    }
    
    .quick-access-text {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: -0.01em;
    }
}

/* Dark theme for Quick Access */
body.dark-theme .quick-access-title {
    background: linear-gradient(135deg, #8b9dff 0%, #a389d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .quick-access-card {
    background: transparent;
    color: #e0e0e0;
}

body.dark-theme .quick-access-text {
    color: #e0e0e0;
}

body.dark-theme .quick-access-card:hover .quick-access-text {
    color: #e0e0e0;
}

body.dark-theme .quick-access-icon {
    background: linear-gradient(135deg, #667eea25 0%, #764ba235 100%);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

body.dark-theme .quick-access-card:hover .quick-access-icon {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

/* Keep TTD and Health icons transparent in dark theme */
body.dark-theme .quick-access-icon.ttd-icon,
body.dark-theme .quick-access-icon.health-icon {
    background: transparent;
    box-shadow: none;
}

body.dark-theme .ttd-icon-img,
body.dark-theme .health-icon-img {
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
}

body.dark-theme .quick-access-card:hover .ttd-icon-img,
body.dark-theme .quick-access-card:hover .health-icon-img {
    filter: drop-shadow(0 6px 16px rgba(102, 126, 234, 0.5));
}

/* News Card Styles */
.news-card-container {
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.news-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.news-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-card-header svg {
    width: 24px;
    height: 24px;
}

.news-card-content {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.news-card-content::-webkit-scrollbar {
    width: 6px;
}

.news-card-content::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 10px;
}

.news-card-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.news-card-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.news-item {
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.2s ease;
}

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

.news-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
}

.news-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.news-badge.new {
    background: #e8f0fe;
    color: #1a73e8;
}

.news-badge.update {
    background: #fef7e0;
    color: #f9ab00;
}

.news-badge.feature {
    background: #e6f4ea;
    color: #137333;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 6px;
    line-height: 1.4;
}

.news-date {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 8px;
}

.news-description {
    font-size: 14px;
    line-height: 1.6;
    color: #3c4043;
}

.news-loading {
    text-align: center;
    padding: 40px 24px;
    color: #5f6368;
}

.news-error {
    text-align: center;
    padding: 40px 24px;
    color: #d93025;
}

@media (max-width: 768px) {
    .quick-access-section {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .quick-access-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .quick-access-card {
        padding: 15px 10px;
        min-height: 90px;
    }
    
    .quick-access-icon {
        font-size: 30px;
        margin-bottom: 6px;
    }
    
    .quick-access-text {
        font-size: 12px;
    }
    
    .news-card-container {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .news-card-header {
        font-size: 16px;
        padding: 16px 20px;
    }
    
    .news-card-content {
        padding: 20px;
        max-height: 300px;
    }
    
    .news-item {
        padding: 12px;
    }
    
    .news-title {
        font-size: 15px;
    }
    
    .news-description {
        font-size: 13px;
    }
}

/* ===================================================================
   Follow-Up Query & AI Answer Styles
   Styles for conversational follow-up queries and AI-powered answers
   =================================================================== */

/* Follow-up answer container with gradient background */
.followup-answer-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 35px;
    margin: 30px 0;
    color: white;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    animation: slideInUp 0.5s ease-out;
}

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

/* Follow-up header */
.followup-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.followup-header h3 {
    font-size: 28px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.context-note {
    font-size: 15px;
    opacity: 0.95;
    font-style: italic;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
}

/* AI answer content */
.ai-answer-content {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    font-size: 17px;
    line-height: 1.8;
    border-left: 5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    white-space: pre-wrap;
}

.ai-answer-content p {
    margin-bottom: 15px;
}

.ai-answer-content strong {
    font-weight: 700;
    color: #fff;
}

/* Previous results info */
.previous-results-info,
.previous-results-link {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    opacity: 0.9;
    text-align: center;
}

.previous-results-info p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Top recommendations section */
.top-recommendations {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.top-recommendations h4 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-recommendations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-recommendations li {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.top-recommendations li:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.top-recommendations li:last-child {
    margin-bottom: 0;
}

/* Show all results button */
.show-all-results-btn-container {
    margin-top: 30px;
    text-align: center;
}

.show-all-results-btn,
.show-previous-btn {
    padding: 15px 30px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.show-all-results-btn:hover,
.show-previous-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.show-all-results-btn:active,
.show-previous-btn:active {
    transform: translateY(-1px);
}

/* Follow-up results header */
.followup-results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.followup-results-header h3 {
    margin: 0 0 10px 0;
    font-size: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.followup-context {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
    font-style: italic;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* Responsive design for follow-up styles */
@media (max-width: 768px) {
    .followup-answer-container {
        padding: 25px 20px;
        margin: 20px 0;
    }
}

/* ============================================================
   AI FIRST SEARCH SUMMARY STYLES
   ============================================================ */

.ai-first-search-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    animation: slideInDown 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.ai-first-search-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-header {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.ai-header h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ai-subheader {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
    line-height: 1.6;
}

.ai-summary-content {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 12px;
    line-height: 1.9;
    font-size: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.ai-summary-content p {
    margin: 0 0 12px 0;
}

.ai-summary-content p:last-child {
    margin-bottom: 0;
}

.ai-top-picks {
    background: white;
    color: #333;
    padding: 25px;
    border-radius: 12px;
    margin-top: 25px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ai-top-picks h4 {
    margin: 0 0 20px 0;
    color: #667eea;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-top-picks ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-top-picks li {
    padding: 18px 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ai-top-picks li:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    border-left-color: #764ba2;
}

.ai-top-picks li:last-child {
    margin-bottom: 0;
}

.ai-top-picks li strong {
    color: #667eea;
    font-size: 17px;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.ai-pick-details {
    display: block;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .ai-first-search-summary {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .ai-header h3 {
        font-size: 22px;
    }
    
    .ai-subheader {
        font-size: 13px;
    }
    
    .ai-summary-content {
        padding: 18px;
        font-size: 14px;
    }
    
    .ai-top-picks {
        padding: 18px;
    }
    
    .ai-top-picks h4 {
        font-size: 18px;
    }
    
    .ai-top-picks li {
        padding: 15px;
    }
    
    .ai-top-picks li strong {
        font-size: 15px;
    }
    
    .ai-pick-details {
        font-size: 13px;
    }
}

/* ============================================================
   END AI FIRST SEARCH SUMMARY STYLES
   ============================================================ */
    
    
    .followup-header h3 {
        font-size: 22px;
    }
    
    .ai-answer-content {
        padding: 20px;
        font-size: 15px;
        line-height: 1.7;
    }
    
    .top-recommendations h4 {
        font-size: 18px;
    }
    
    .top-recommendations li {
        font-size: 14px;
        padding: 12px;
    }
    
    .show-all-results-btn,
    .show-previous-btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .followup-results-header {
        padding: 20px;
    }
    
    .followup-results-header h3 {
        font-size: 20px;
    }
    
    .context-note,
    .followup-context {
        font-size: 13px;
    }


/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE DESIGN
   Mobile-First Approach for Smooth User Experience
   ============================================================ */

/* Mobile Phones - Portrait (320px - 480px) */
@media (max-width: 480px) {
    /* Root font size adjustment */
    html {
        font-size: 14px;
    }
    
    /* Body padding adjustments */
    body {
        padding-top: 70px; /* Account for fixed header */
    }
    
    /* Hamburger and Language Selector - Compact */
    .hamburger-menu {
        width: 44px;
        height: 44px;
        top: 12px;
        left: 12px;
    }
    
    .language-selector {
        top: 12px;
        right: 12px;
        min-width: 85px;
    }
    
    .language-selector select {
        font-size: 12px;
        padding: 8px 10px;
        padding-right: 28px;
    }
    
    /* Search page header adjustments */
    .search-header {
        padding: 10px 60px 10px 60px; /* Less padding on mobile */
        gap: 10px;
    }
    
    .search-logo-text {
        font-size: 16px; /* Even smaller on mobile */
        padding: 4px 8px;
    }
    
    .search-input-container {
        max-width: 100%; /* Full available width */
    }
    
    /* Sidebar - Full width on small phones */
    .sidebar {
        left: -100%; /* Completely hide when closed */
        width: 90vw;
        max-width: 100%;
    }
    
    .sidebar-nav .nav-item {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .nav-icon {
        font-size: 18px;
    }
    
    /* Logo sizing */
    .logo {
        font-size: 42px;
        margin-bottom: 15px;
    }
    
    .logo-small {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    /* Search container */
    .search-container {
        padding: 0 12px;
    }
    
    .search-input-wrapper {
        border-radius: 20px;
        min-height: 46px;
    }
    
    .search-box {
        font-size: 15px;
        padding: 10px 12px;
    }
    
    .search-icon-btn,
    .voice-icon-btn {
        padding: 6px 10px;
    }
    
    .search-icon-btn svg,
    .voice-icon-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Quick Access Cards - Stack vertically */
    .quick-access-section {
        padding: 15px 10px;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 10px;
    }
    
    .quick-access-card {
        padding: 15px 10px;
        min-height: 90px;
    }
    
    .quick-access-icon {
        font-size: 28px;
        margin-bottom: 6px;
    }
    
    .quick-access-text {
        font-size: 12px;
    }
    
    /* Results Table - Horizontal scroll */
    .results-container {
        padding: 15px 10px;
        margin: 15px auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .results-table {
        min-width: 800px; /* Force horizontal scroll */
        font-size: 11px;
    }
    
    .table-header,
    .table-row {
        padding: 8px 10px;
        gap: 8px;
        font-size: 11px;
    }
    
    /* Continue Chat Section */
    .continue-chat {
        margin: 15px 10px;
        padding: 15px;
        border-radius: 10px;
    }
    
    .chat-header h3 {
        font-size: 18px;
    }
    
    .next-search-form {
        flex-direction: column;
        gap: 8px;
    }
    
    .next-search-box {
        max-width: 100%;
        font-size: 15px;
        padding: 10px 14px;
    }
    
    .next-search-btn {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
    
    /* Suggestion buttons - Stack better on mobile */
    .suggestion-buttons {
        gap: 6px;
    }
    
    .suggestion-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* AI Analysis Panel */
    .ai-analysis-panel {
        margin: 15px 10px;
        padding: 15px;
    }
    
    .ai-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .ai-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Voice Modal */
    .voice-modal-content {
        padding: 30px 20px;
        min-width: 280px;
        max-width: 90vw;
    }
    
    .voice-modal-icon {
        font-size: 48px;
    }
    
    .voice-modal-text {
        font-size: 20px;
    }
    
    /* Construction Guide */
    .construction-guide-panel {
        padding: 15px;
        margin: 15px 10px;
    }
    
    .project-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .phases-grid,
    .materials-grid,
    .checklist-items,
    .tips-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cost-breakdown-table {
        font-size: 12px;
        overflow-x: auto;
        display: block;
    }
    
    .cost-breakdown-table th,
    .cost-breakdown-table td {
        padding: 8px;
        font-size: 12px;
    }
    
    /* Properties Table - Real Estate */
    .properties-table {
        font-size: 11px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .properties-table th,
    .properties-table td {
        padding: 6px 4px;
        font-size: 10px;
    }
    
    /* Chat History */
    .chat-message {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .chat-query-header {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 6px;
        font-size: 12px;
    }
    
    /* Price Analysis */
    .price-analysis-panel,
    .smart-insights-panel {
        margin: 15px 10px;
        padding: 15px;
    }
    
    .price-comparison {
        grid-template-columns: 1fr;
    }
}

/* Mobile Phones - Landscape & Small Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    /* Adjust spacing for landscape */
    .search-container {
        padding: 0 20px;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
        gap: 12px;
    }
    
    .results-container {
        padding: 20px 15px;
    }
    
    .continue-chat {
        margin: 20px 15px;
        padding: 18px;
    }
    
    .next-search-form {
        flex-direction: row;
    }
    
    .next-search-box {
        max-width: 60%;
    }
    
    .next-search-btn {
        width: auto;
    }
    
    .ai-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .ai-btn {
        flex: 1;
        min-width: 200px;
    }
    
    /* Construction guide - 2 column layout */
    .phases-grid,
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Search page header adjustments for landscape */
    .search-header {
        padding: 12px 70px;
    }
    
    .search-logo-text {
        font-size: 18px;
    }
}

/* Tablets - Portrait (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .results-container {
        max-width: 95%;
        padding: 25px;
    }
    
    .sidebar {
        left: -100%; /* Completely hide when closed */
        width: 192px; /* 60% of original 320px for consistency */
    }
    
    /* Allow more columns in grids */
    .phases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .materials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .vendor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch target sizes */
    button,
    a,
    input[type="button"],
    input[type="submit"],
    select {
        min-height: 44px; /* Apple's recommended minimum */
        min-width: 44px;
    }
    
    /* Better spacing for touch */
    .nav-item {
        padding: 16px 20px;
    }
    
    .suggestion-btn {
        padding: 10px 16px;
        margin: 4px;
    }
    
    /* Remove hover effects on touch devices */
    .search-icon-btn:hover,
    .voice-icon-btn:hover,
    .suggestion-btn:hover {
        background: transparent;
    }
    
    .search-icon-btn:active,
    .voice-icon-btn:active {
        background: #f1f3f4;
    }
}

/* --- Google Translate hard-hide (prevent stray language labels) --- */
#google_translate_element { 
    display: none !important; 
    width: 0 !important; 
    height: 0 !important; 
    overflow: hidden !important; 
}

.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-gadget span,
.goog-te-banner-frame,
.goog-te-menu-frame,
.goog-te-balloon-frame,
.goog-te-spinner-pos,
.goog-te-menu2,
.goog-te-menu-value {
    display: none !important;
    visibility: hidden !important;
}

/* Keep the underlying select present for programmatic control, but move it off-screen */
.goog-te-combo {
    position: absolute !important;
    left: -99999px !important;
    top: -99999px !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
}

/* Ensure no accidental layout shifts from injected wrappers */
body, html {
    background-position: initial !important;
}

/* Landscape Orientation Adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .logo {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .search-container {
        margin-top: 10px;
    }
    
    .quick-access-section {
        padding: 10px;
    }
    
    body.center-mode {
        padding-top: 40px;
    }
}

/* High DPI Displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .search-input-wrapper {
        box-shadow: 0 1px 3px 0.5px rgba(64,60,67,.16);
    }
    
    .hamburger-menu,
    .language-selector select {
        box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    }
}

/* Print Styles */
@media print {
    .hamburger-menu,
    .sidebar,
    .sidebar-overlay,
    .language-selector,
    .voice-icon-btn,
    .continue-chat,
    .ai-analysis-panel {
        display: none !important;
    }
    
    .results-container {
        max-width: 100%;
        padding: 0;
        background: white;
        color: black;
    }
    
    body {
        background: white;
    }
}

/* ============================================================
   END MOBILE RESPONSIVE DESIGN
   ============================================================ */
