/* CSS Design System for PGNest */
:root {
    --primary: #ff5a3c;
    --primary-hover: #e0482b;
    --secondary: #1a1e25;
    --secondary-hover: #2c323f;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-main: #1a1e25;
    --text-muted: #6e7c90;
    --border-color: #eef1f6;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px rgba(255, 90, 60, 0.15);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Objective specific colors for progress bars */
    --color-cost: #f43f5e;
    --color-distance: #06b6d4;
    --color-safety: #10b981;
    --color-quality: #eab308;
    --color-amenity: #8b5cf6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--border-radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--border-radius-lg);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 90, 60, 0.2);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Dark Room toggle button */
.btn-dark-room {
    padding: 9px 12px;
    line-height: 1;
}

.btn-dark-room .icon-sun {
    display: none; /* shown only in dark mode via dark-mode.css */
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Header Navigation */
.app-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-icon {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

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

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px 3px 0 0;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f3f5f8 0%, #eef1f6 100%);
    padding: 100px 20px 120px 20px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
}

.centered-text {
    text-align: center;
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.hero-tag {
    background-color: rgba(255, 90, 60, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    align-self: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 58px;
    line-height: 1.1;
    letter-spacing: -1.8px;
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 650px;
}

.hero-badges {
    display: flex;
    gap: 25px;
    margin-top: 15px;
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-weight: 500;
    font-size: 14px;
}

.hero-badge-item i {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

/* Modal Overlay & General Popups */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 30, 37, 0.6);
    backdrop-filter: blur(8px);
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-medium);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    transition: var(--transition);
}

.modal-overlay.open .modal-container {
    transform: translateY(0);
}

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

.btn-close-modal {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.btn-close-modal:hover {
    color: var(--primary);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
}

.overflow-x {
    overflow-x: auto;
}

/* Step Wizard Container */
.wizard-container {
    max-width: 540px;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.wizard-header {
    padding: 25px 30px 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.wizard-title-block h2 {
    font-size: 24px;
    color: var(--secondary);
}

.wizard-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* Progress Tracking Bar */
.wizard-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    margin: 15px 0 25px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.step-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.progress-step.active .step-num {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(255, 90, 60, 0.2);
}

.progress-step.active .step-text {
    color: var(--primary);
    font-weight: 700;
}

.progress-step.completed .step-num {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--bg-white);
}

.progress-line {
    flex: 1;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 -15px;
    position: relative;
    top: -10px;
    z-index: 1;
}

/* Form Styles */
.wizard-body {
    padding: 10px 30px 25px 30px;
    overflow-y: auto;
    min-height: 0;
}

.wizard-step-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

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

.step-instruction {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    width: 14px;
    height: 14px;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--bg-light);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
    cursor: pointer;
}

.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 90, 60, 0.1);
}

.price-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-slider-container input[type="range"] {
    flex: 1;
    accent-color: var(--primary);
    cursor: pointer;
}

.budget-value {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    min-width: 85px;
    text-align: right;
}

/* Step 2: 1 to 10 Ratings Custom sliders */
.priority-rating-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: var(--bg-light);
    padding: 12px 18px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.rating-labels-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-title i {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
}

.rating-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

.rating-slider {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Step 3: Card Checklist Grid */
.wizard-amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.amenity-checkbox-card {
    cursor: pointer;
}

.amenity-checkbox-card input {
    display: none;
}

.amenity-card-content {
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: var(--transition);
}

.amenity-card-content i {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: var(--transition);
}

.amenity-card-content span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.amenity-checkbox-card input:checked + .amenity-card-content {
    border-color: var(--primary);
    background-color: rgba(255, 90, 60, 0.04);
}

.amenity-checkbox-card input:checked + .amenity-card-content i {
    color: var(--primary);
    transform: scale(1.1);
}

.amenity-checkbox-card input:checked + .amenity-card-content span {
    color: var(--primary);
    font-weight: 700;
}

/* Wizard Footer */
.wizard-footer {
    padding: 20px 30px 25px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invisible {
    visibility: hidden;
}

/* Analytics Dashboard Section */
.analytics-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 28px;
}

.section-header p {
    color: var(--text-muted);
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border-color);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-wrapper i {
    width: 22px;
    height: 22px;
}

.stat-icon-wrapper.blue { background-color: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.stat-icon-wrapper.orange { background-color: rgba(255, 90, 60, 0.1); color: var(--primary); }
.stat-icon-wrapper.green { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.stat-icon-wrapper.purple { background-color: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.chart-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.chart-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Recommender Container Full Width */
.recommender-section {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
    animation: fadeIn 0.4s ease-in-out;
}

/* Priority Summary Dashboard Banner */
.priority-summary-banner {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    padding: 20px 25px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-filters-row {
    display: flex;
    gap: 10px;
}

.summary-tag {
    background-color: rgba(26, 30, 37, 0.05);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.summary-priorities-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.summary-priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.summary-priority-badge span {
    color: var(--primary);
    font-weight: 800;
}

.recommender-container-full {
    width: 100%;
}

/* Results Pane */
.results-pane {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.results-title {
    font-size: 28px;
    color: var(--secondary);
}

.results-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.results-alg-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.alg-mini-tabs {
    display: flex;
    background-color: rgba(26, 30, 37, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 3px;
}

.alg-mini-tab {
    padding: 4px 10px;
    border-radius: 4px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.alg-mini-tab.active {
    background-color: var(--bg-white);
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* PG Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 25px;
    min-height: 400px;
}

/* PG Card Item */
.pg-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.pg-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.card-image-section {
    height: 180px;
    position: relative;
    background: linear-gradient(45deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Abstract housing canvas background */
.card-image-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: radial-gradient(circle at 20% 30%, #ff5a3c 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, #8b5cf6 0%, transparent 50%);
}

.price-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--bg-white);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 800;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.heart-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    z-index: 2;
}

.heart-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.heart-btn.active {
    color: var(--primary);
    background-color: var(--bg-white);
}

.rank-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--secondary);
    color: var(--bg-white);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.match-score-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 90, 60, 0.3);
    z-index: 2;
}

/* Card details styling */
.card-details-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-pg-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.card-pg-address {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 15px;
}

.card-pg-address i {
    width: 12px;
    height: 12px;
}

/* Specs Row */
.card-specs-row {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.spec-item i {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

/* Match Breakdown Score bars */
.card-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.breakdown-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.breakdown-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
    width: 80px;
}

.breakdown-label i {
    width: 11px;
    height: 11px;
    color: var(--text-muted);
}

.breakdown-bar-bg {
    flex: 1;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.breakdown-bar-fill {
    height: 100%;
    border-radius: 10px;
}

.breakdown-bar-fill.cost { background-color: var(--color-cost); }
.breakdown-bar-fill.distance { background-color: var(--color-distance); }
.breakdown-bar-fill.safety { background-color: var(--color-safety); }
.breakdown-bar-fill.quality { background-color: var(--color-quality); }
.breakdown-bar-fill.amenity { background-color: var(--color-amenity); }

.breakdown-val {
    font-size: 10px;
    font-weight: 700;
    width: 30px;
    text-align: right;
}

/* Card Actions */
.card-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.compare-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.compare-checkbox-label input {
    display: none;
}

.compare-box-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: var(--transition);
}

.compare-checkbox-label input:checked + .compare-box-custom {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.compare-checkbox-label input:checked + .compare-box-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Loading & Empty states */
.loading-state, .empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    gap: 15px;
}

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

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

.empty-state i {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 20px;
}

/* Floating Compare Drawer */
.compare-drawer {
    position: fixed;
    bottom: -150px; /* Hidden initially */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: var(--secondary);
    color: var(--bg-white);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    z-index: 90;
    transition: var(--transition);
}

.compare-drawer.open {
    bottom: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
}

.drawer-title i {
    color: var(--primary);
}

.drawer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-close-drawer {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.drawer-content {
    padding: 15px 25px;
}

.compare-thumbnails {
    display: flex;
    gap: 15px;
}

.compare-thumb-card {
    background-color: rgba(255,255,255,0.05);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    min-width: 150px;
}

.compare-thumb-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 120px;
}

.compare-thumb-remove {
    background: none;
    border: none;
    color: #f43f5e;
    cursor: pointer;
    font-size: 14px;
}

/* Modals Overlay (Non-wizard detail and compare modals) */
.compare-modal-container {
    max-width: 950px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.compare-table th, .compare-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.compare-table th {
    background-color: var(--bg-light);
    font-weight: 700;
    color: var(--secondary);
}

.compare-table tr:hover {
    background-color: rgba(255, 90, 60, 0.01);
}

.compare-header-cell {
    min-width: 180px;
}

.compare-title-bold {
    font-weight: 700;
    color: var(--secondary);
}

.compare-score-badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 4px 10px;
    border-radius: 30px;
    font-weight: 800;
}

/* PG Details modal content */
.details-modal-container {
    max-width: 700px;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.details-title-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.details-title-row h3 {
    font-size: 24px;
}

.details-price-badge {
    background-color: rgba(255, 90, 60, 0.1);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: var(--border-radius-md);
    font-weight: 800;
    font-size: 20px;
    font-family: 'Outfit', sans-serif;
}

.details-meta-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.details-meta-item {
    font-size: 13px;
}

.details-meta-item strong {
    color: var(--secondary);
    display: inline-block;
    width: 140px;
}

.details-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.details-amenity-badge {
    background-color: var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.details-amenity-badge.present {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.details-amenity-badge.absent {
    background-color: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}

.routing-diagram-container {
    background-color: #0f172a;
    border-radius: var(--border-radius-md);
    padding: 20px;
    color: #94a3b8;
}

.routing-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 15px;
}

.routing-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 10px 0;
}

.routing-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.routing-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #1e293b;
    border: 2px solid #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
}

.routing-node.active .routing-circle {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-white);
}

.routing-label {
    font-size: 11px;
    font-weight: 600;
}

.routing-line {
    flex: 1;
    height: 2px;
    background-color: #334155;
    margin: 0 -5px;
    position: relative;
    top: -10px;
}

.routing-dist {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    background-color: #1e293b;
    padding: 2px 8px;
    border-radius: 10px;
    color: #38bdf8;
}

/* Footer styling */
.app-footer {
    background-color: var(--secondary);
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 30px 20px;
    font-size: 13px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .recommender-container {
        grid-template-columns: 1fr;
    }
    
    .recommender-sidebar {
        position: relative;
        top: 0;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Google Places API Image Styles */
.pg-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    position: relative;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.details-image-container {
    width: 100%;
    height: 250px;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.details-meta-item {
    font-size: 13px;
}

.details-meta-item strong {
    color: var(--secondary);
    display: inline-block;
    width: 140px;
}

.details-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.details-amenity-badge {
    background-color: var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.details-amenity-badge.present {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.details-amenity-badge.absent {
    background-color: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}

.routing-diagram-container {
    background-color: #0f172a;
    border-radius: var(--border-radius-md);
    padding: 20px;
    color: #94a3b8;
}

.routing-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 15px;
}

.routing-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 10px 0;
}

.routing-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.routing-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #1e293b;
    border: 2px solid #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
}

.routing-node.active .routing-circle {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-white);
}

.routing-label {
    font-size: 11px;
    font-weight: 600;
}

.routing-line {
    flex: 1;
    height: 2px;
    background-color: #334155;
    margin: 0 -5px;
    position: relative;
    top: -10px;
}

.routing-dist {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    background-color: #1e293b;
    padding: 2px 8px;
    border-radius: 10px;
    color: #38bdf8;
}

/* Footer styling */
.app-footer {
    background-color: var(--secondary);
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 30px 20px;
    font-size: 13px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .recommender-container {
        grid-template-columns: 1fr;
    }
    
    .recommender-sidebar {
        position: relative;
        top: 0;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Google Places API Image Styles */
.pg-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    position: relative;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.details-image-container {
    width: 100%;
    height: 250px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.details-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Home Page Features Section */
.features-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

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

.features-header {
    text-align: center;
    margin-bottom: 50px;
}

.features-header h2 {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.features-header p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-medium);
}

.feature-card i {
    color: var(--primary);
    width: 36px;
    height: 36px;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Methodology Section styling */
.methodology-section {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
    animation: fadeIn 0.4s ease-in-out;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 1100px) {
    .methodology-grid {
        grid-template-columns: 1fr;
    }
}

.methodology-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.methodology-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.methodology-icon {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

.formula-box {
    background-color: var(--secondary);
    color: #f8fafc;
    padding: 18px;
    border-radius: var(--border-radius-md);
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 700;
    margin: 10px 0;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
    border-left: 4px solid var(--primary);
}

.formula-box-small {
    background-color: var(--secondary);
    color: #f8fafc;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 700;
    margin: 5px 0;
    display: inline-block;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    border-left: 3px solid var(--primary);
}

.formula-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.formula-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.methodology-steps {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.methodology-steps li {
    font-size: 14px;
}
