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

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Mobile-First Touch Optimizations */
* {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
}

html {
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

body.home-page {
    background: #f8f9fa;
}

body.nav-open {
    overflow: hidden;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    z-index: 1000;
}

.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #5a67d8;
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 2000;
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.55);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    margin-bottom: 0;
    text-align: left;
}

.site-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-nav__brand {
    font-weight: 700;
    font-size: 1rem;
    color: #f8fafc;
    text-decoration: none;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
}

.site-logo {
    height: 80px;
    width: auto;
    display: block;
}

.site-nav__links {
    display: none; /* Hidden by default, use hamburger menu on all screens */
    flex-wrap: wrap;
    gap: 0.75rem;
}


.site-nav__toggle-bars {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
}

.site-nav__toggle-bars span {
    display: block;
    width: 18px;
    height: 2px;
    background: #f8fafc;
    border-radius: 2px;
}

.site-nav__links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav__links a:hover {
    background: rgba(248, 250, 252, 0.15);
    color: #ffffff;
}

/* Hamburger menu button - show on all screen sizes */
.mobile-menu-btn {
    display: block;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #f8fafc;
    transition: opacity 0.2s;
}

.mobile-menu-btn:hover {
    opacity: 0.8;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.mobile-menu-overlay--open {
    display: block;
}

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

/* Mobile menu panel */
.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #1e293b;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0; /* Prevent header from shrinking */
}

.mobile-menu__title {
    color: #f8fafc;
    font-weight: 700;
    font-size: 1.2rem;
}

.mobile-menu__close {
    background: transparent;
    border: none;
    color: #f8fafc;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.75rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.mobile-menu__nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: #f8fafc;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
    text-align: center;
}

.mobile-menu__nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem 4rem;
    }
}

header {
    text-align: center;
    margin-bottom: 4rem;
    color: white;
}

header h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.api-status {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.status-loading, .status-success, .status-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-loading {
    color: var(--text-secondary);
}

.status-success {
    color: var(--success-color);
}

.status-error {
    color: var(--error-color);
}

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

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

.search-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    margin-bottom: 3rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Tabs */
.search-tabs {
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
}

.tabs-navigation {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab-item {
    flex: 1;
}

.tab-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 4px solid transparent;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.tab-item--active .tab-btn {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #ffffff;
}

.tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.search-form {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.form-group label,
.form-label-with-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-label-with-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

/* Location field with buttons */
.form-group--location {
    position: relative;
}

.location-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-inline-alt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: #475569;
}

.btn-inline-alt:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.btn-inline-alt svg {
    width: 18px;
    height: 18px;
}

/* Property type with advanced button */
.btn-advanced {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: #64748b;
}

.btn-advanced:hover {
    background: #f8fafc;
    border-color: #667eea;
    color: #667eea;
}

.btn-advanced svg {
    width: 18px;
    height: 18px;
}

/* Price range */
.form-group--price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-range {
    display: flex;
    gap: 0.75rem;
}

.price-select {
    flex: 1;
}

/* Bedrooms radio buttons */
.form-group--bedrooms {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.radio-square-label {
    position: relative;
    cursor: pointer;
}

.radio-square {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-square-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
    transition: all 0.2s;
    font-size: 1.05rem;
}

.radio-square:checked + .radio-square-title {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.radio-square-title:hover {
    border-color: #667eea;
    color: #667eea;
    background: #ffffff;
}

.radio-square:checked + .radio-square-title:hover {
    background: #5a67d8;
    border-color: #5a67d8;
}

.form-group input,
.form-group select {
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.2s;
    font-family: inherit;
    font-weight: 500;
    background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: #ffffff;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    box-shadow: var(--shadow-lg);
}

.suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: var(--bg-color);
}

.search-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s;
    margin-top: 0.5rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
    letter-spacing: -0.01em;
}

.search-btn:hover {
    background: #5a67d8;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.45);
}

.search-btn:active {
    transform: translateY(-1px);
}

.results-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sort-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.sort-select:hover {
    border-color: var(--primary-color);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.clear-btn {
    background: #64748b;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

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

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.property-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid #f1f5f9;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.property-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    flex-wrap: wrap;
    max-width: calc(100% - 1rem);
    justify-content: flex-end;
}


.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-content {
    padding: 2rem;
}

.property-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.property-source {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.6rem;
    background: #f1f5f9;
    color: #334155;
}

.property-status--offer {
    background: #fef3c7;
    color: #b45309;
}

.property-status--sold {
    background: #fee2e2;
    color: #b91c1c;
}

.property-status--removed {
    background: #e5e7eb;
    color: #374151;
}

.property-status--info {
    background: #e0f2fe;
    color: #0369a1;
}

/* Map modal */
.map-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.map-modal__content {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: min(1000px, 95vw);
    max-height: 90vh;
    overflow: hidden;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.map-modal__header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.map-modal__close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
}

.map-modal__hint {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.map-container {
    width: 100%;
    height: 420px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Marker cluster styling */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.marker-cluster {
    transition: all 0.2s ease !important;
}

.marker-cluster:hover {
    transform: scale(1.1);
}

.map-modal__actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.map-modal__actions-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.coming-soon-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.coming-soon-modal__content {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: min(420px, 90vw);
    padding: 1.5rem;
    text-align: center;
    display: grid;
    gap: 0.75rem;
}

.map-result-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: auto;
}

.search-btn--compact {
    padding: 0.75rem 1.25rem;
    align-self: flex-end;
}

.property-price {
    font-size: 1.75rem;
    font-weight: 900;
    color: #667eea;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.property-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.property-address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.property-details {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.property-amenities {
    margin-top: 0.75rem;
}

.things-near-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.things-near-link:hover {
    background: rgba(37, 99, 235, 0.2);
}

.property-detail {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.loading p {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.error {
    background: #fef2f2;
    border: 2px solid var(--error-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--error-color);
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    color: white;
    opacity: 0.9;
}

footer a {
    color: white;
    text-decoration: underline;
}

.legal-notice {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* SEO pages */
.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
}

.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    box-shadow: none;
    border-bottom: none;
}

.page-hero .breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.page-hero .breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.page-hero .breadcrumbs a:hover {
    color: #ffffff;
}

.page-hero .breadcrumbs span {
    color: rgba(255, 255, 255, 0.6);
}

.page-hero__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
    text-align: center;
}

.page-hero__content h1 {
    color: #ffffff;
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero-eyebrow {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 900px;
    line-height: 1.5;
    font-weight: 400;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: #5a67d8;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f8fafc;
    color: #667eea;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.breadcrumbs {
    color: white;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: white;
    text-decoration: underline;
}

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

.seo-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.seo-card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.seo-card p {
    color: var(--text-secondary);
}

.seo-links h2 {
    color: white;
    margin-bottom: 1rem;
}

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

.link-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.seo-cta .cta-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 0.75rem;
}

.seo-amenities .amenities-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 0.75rem;
}

.seo-amenities .amenities-card p {
    color: var(--text-secondary);
}

.site-footer {
    text-align: center;
    color: white;
    opacity: 0.9;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    img, video, iframe, embed, object {
        max-width: 100%;
        height: auto;
    }
    
    table {
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 1.25rem 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }

    .search-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    input, select, textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .location-buttons {
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
    }

    .btn-inline-alt,
    .btn-advanced,
    .search-btn,
    .clear-btn {
        width: 100%;
        justify-content: center;
    }

    .price-range {
        flex-direction: column;
    }

    .bedrooms-radio {
        gap: 0.4rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .results-controls {
        width: 100%;
    }

    .results-controls select,
    .results-controls button {
        width: 100%;
    }

    .results-pagination {
        width: 100%;
        justify-content: space-between;
    }
    
    .page-hero {
        padding: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .page-hero .breadcrumbs {
        padding: 1.5rem 1rem 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-hero__content {
        padding: 1.5rem 1rem 3rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    
    .page-hero__content h1 {
        font-size: clamp(1.75rem, 5vw, 3rem);
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0;
        margin: 0 auto 1rem;
        max-width: 100%;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 0.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mobile-menu-btn {
        display: block;
    }

    .site-nav__links {
        display: none !important;
    }

    .map-modal {
        padding: 0.75rem;
    }

    .map-modal__content {
        width: 100%;
        max-height: 92vh;
        padding: 1rem;
    }

    .map-container {
        height: 320px;
    }

    .map-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .map-modal__actions-right {
        justify-content: flex-start;
    }

    .map-modal__actions-right .btn-inline-alt,
    .map-modal__actions-right .search-btn {
        width: 100%;
    }

    .property-content {
        padding: 1.1rem;
    }

    .property-details {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .property-price {
        font-size: 1.3rem;
    }
    
    /* Touch-friendly button sizing */
    button, .btn-primary, .btn-secondary, .btn-inline-alt, .btn-advanced {
        min-height: 44px;
    }
    
    /* Improve form element touch targets */
    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Better spacing for mobile */
    .guide-section, .ftb-section, .report-section, .calc-section {
        padding: 2rem 1.25rem !important;
    }
    
    /* Improve property card tap targets */
    .property-card {
        margin-bottom: 1rem;
    }
    
    /* Better navigation padding */
    .guide-nav {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .guide-nav a {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 480px) {
    .site-nav__inner {
        padding: 0.75rem 1rem;
    }

    .search-form {
        padding: 1.25rem;
    }

    .results-section {
        padding: 1.25rem;
    }

    .property-image {
        height: 170px;
    }

    .map-container {
        height: 260px;
    }
    
    .page-hero__content {
        padding: 1.25rem 0.75rem 2.5rem;
    }
    
    .page-hero__content h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        line-height: 1.3;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.75rem;
    }
    
    .page-hero .breadcrumbs {
        padding: 1rem 0.75rem 0;
        font-size: 0.85rem;
    }
    
    /* Fix h2 on very small screens */
    .guides-intro h2,
    .guides-section h2,
    .guide-section h2,
    .ftb-section h2,
    .report-section h2,
    .calc-section h2 {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
        padding: 0 0.75rem;
    }
}

/* ============================================
   NEIGHBORHOOD GUIDE PAGES - MODERN REDESIGN
   ============================================ */

.guide-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    border-radius: 0;
    color: #ffffff;
    margin-bottom: 0;
    border-bottom: none;
}

.guide-hero .breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.guide-hero .breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.guide-hero .breadcrumbs a:hover {
    color: #ffffff;
}

.guide-hero .breadcrumbs span {
    color: rgba(255, 255, 255, 0.6);
}

.guide-hero__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
    text-align: center;
}

.guide-hero__content h1 {
    color: #ffffff;
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}

.guide-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 900px;
    line-height: 1.5;
    font-weight: 400;
    margin-left: auto;
    margin-right: auto;
}

.guide-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
}

.guide-region {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.guide-separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.page-main,
.guide-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    background: transparent;
}

.guide-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 0;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 70px;
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.guide-nav a {
    padding: 0.85rem 1.5rem;
    background: transparent;
    color: #475569;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 2px solid transparent;
    margin-right: 0.5rem;
}

.guide-nav a:hover {
    background: #f8fafc;
    color: #667eea;
    border-color: #667eea;
    transform: translateY(-1px);
}

.guide-section,
.ftb-section,
.report-section,
.calc-section {
    background: #ffffff;
    padding: 4rem 2rem;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.guide-section:nth-of-type(even),
.ftb-section:nth-of-type(even),
.report-section:nth-of-type(even) {
    background: #f8fafc;
}

.guide-section h2,
.ftb-section h2,
.report-section h2,
.calc-section h2 {
    color: #0f172a;
    font-size: 2.75rem;
    margin-bottom: 2.5rem;
    padding-bottom: 0;
    border-bottom: none;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.guide-section p,
.ftb-section p,
.report-section p,
.calc-section p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.guide-section ul,
.ftb-section ul,
.report-section ul {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.guide-section li,
.ftb-section li,
.report-section li {
    margin-bottom: 0.75rem;
}

.guide-content,
.ftb-intro,
.calc-desc {
    color: #334155;
    line-height: 1.8;
    font-size: 1.05rem;
}

.guide-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

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

.guide-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.guide-card:hover {
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
    border-color: #667eea;
}

.guide-card--full {
    grid-column: 1 / -1;
}

.guide-card h3 {
    color: #0f172a;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.guide-card p {
    color: #475569;
    line-height: 1.75;
    font-size: 1.05rem;
}

.guide-price-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

.guide-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.guide-cta {
    margin-top: 2rem;
    text-align: center;
}

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

.school-group h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.schools-list {
    list-style: none;
    padding: 0;
}

.schools-list li {
    padding: 0.75rem 1rem;
    background: var(--secondary-light);
    margin-bottom: 0.5rem;
    border-radius: 8px;
    color: var(--text-primary);
    border-left: 3px solid var(--secondary-color);
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.transport-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--secondary-light);
    border-radius: 12px;
}

.transport-item svg {
    flex-shrink: 0;
    color: var(--secondary-color);
}

.transport-item h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.transport-item p {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

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

.amenity-card {
    padding: 1.75rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.amenity-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.amenity-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.amenity-card p {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 0.95rem;
}

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

.lifestyle-card {
    padding: 1.75rem;
    border-radius: 12px;
    border-left: 4px solid;
}

.lifestyle-card--good {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.lifestyle-card--caution {
    background: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
}

.lifestyle-card--full {
    grid-column: 1 / -1;
    background: var(--secondary-light);
    border-color: var(--secondary-color);
}

.lifestyle-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.lifestyle-card p {
    color: var(--text-primary);
    line-height: 1.7;
}

.insights-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--secondary-light);
}

.insights-intro {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.insights-list {
    list-style: none;
    padding: 0;
}

.insights-list li {
    padding: 1rem 1rem 1rem 2.5rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 8px;
    position: relative;
    color: var(--text-primary);
    line-height: 1.7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.insights-list li:before {
    content: "💡";
    position: absolute;
    left: 0.75rem;
    top: 1rem;
}

.guide-cta-section {
    margin: 3rem 0;
}

.guide-cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    color: white;
}

.guide-cta-box h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.guide-cta-box p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.related-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.related-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.related-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.related-card:hover .related-arrow {
    transform: translateX(4px);
}

/* Responsive adjustments for guides */
@media (max-width: 768px) {
    .guide-hero {
        padding: 2rem 1.5rem;
    }

    .guide-section {
        padding: 1.5rem;
    }

    .guide-nav {
        position: static;
        gap: 0.5rem;
        padding: 1rem;
    }

    .guide-nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .guide-grid,
    .schools-grid,
    .transport-grid,
    .amenities-grid,
    .lifestyle-grid {
        grid-template-columns: 1fr;
    }

    .guide-card--full,
    .lifestyle-card--full {
        grid-column: 1;
    }
    
    /* Fix h2 alignment on mobile */
    /* Fix h2 alignment on mobile */
    .guides-intro h2,
    .guides-section h2,
    .guide-section h2,
    .ftb-section h2,
    .report-section h2,
    .calc-section h2 {
        text-align: center !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-left: auto;
        margin-right: auto;
    }
    
    .guides-intro,
    .guides-section {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

/* ============================================
   NEIGHBORHOOD GUIDES INDEX PAGE
   ============================================ */

.guides-intro {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow);
}

.guides-intro h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.guides-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.guides-section {
    margin-bottom: 3rem;
}

.guides-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--secondary-light);
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

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

.guide-preview-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.guide-preview-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.guide-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.guide-preview-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 0;
}

.guide-preview-arrow {
    color: var(--secondary-color);
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s;
}

.guide-preview-card:hover .guide-preview-arrow {
    transform: translateX(6px);
}

.guide-preview-region {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.guide-preview-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.guide-preview-cta {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
}

.guides-features {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow);
}

.guides-features h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.feature-card {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95rem;
}

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .guides-intro,
    .guides-features {
        padding: 1.5rem;
    }
}

/* ============================================
   MARKET REPORTS PAGES
   ============================================ */

.latest-report {
    margin-bottom: 3rem;
}

.latest-report-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 16px;
    color: white;
    position: relative;
}

.latest-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.latest-report-card h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

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

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

.latest-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.latest-stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
}

.report-section {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.report-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--secondary-light);
}

.about-reports p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

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

.report-feature {
    text-align: center;
}

.reports-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.archive-report-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.archive-report-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.archive-report-date {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.archive-month {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.archive-year {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.archive-report-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.archive-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--secondary-color);
    font-size: 1.8rem;
    transition: transform 0.3s;
}

.archive-report-card:hover .archive-arrow {
    transform: translateX(6px);
}

/* Individual Report Page Styles */

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

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-light);
    border-radius: 12px;
    border-top: 4px solid var(--secondary-color);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.trend-card {
    padding: 1.75rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
}

.trend-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.trend-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

.trend-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bedrooms-chart {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bedroom-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bedroom-label {
    min-width: 80px;
    font-weight: 600;
    color: var(--primary-color);
}

.bedroom-bar-container {
    flex: 1;
    height: 40px;
    background: var(--secondary-light);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.bedroom-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), #667eea);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    transition: width 0.6s ease;
}

.bedroom-count {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    text-shadow: none;
}

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

.areas-table table {
    width: 100%;
    border-collapse: collapse;
}

.areas-table th {
    text-align: left;
    padding: 1rem;
    background: var(--secondary-light);
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--secondary-color);
}

.areas-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.areas-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

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

.source-card {
    padding: 1.5rem;
    background: var(--secondary-light);
    border-radius: 12px;
    text-align: center;
}

.source-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.source-count {
    color: var(--text-secondary);
}

.report-insights-list {
    list-style: none;
    padding: 0;
}

.report-insights-list li {
    padding: 1.25rem 1.25rem 1.25rem 3rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    position: relative;
    line-height: 1.7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.report-insights-list li:before {
    content: "📈";
    position: absolute;
    left: 1rem;
    top: 1.25rem;
    font-size: 1.2rem;
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-link {
    padding: 1.5rem;
    background: var(--secondary-light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(4px);
}

/* Responsive for market reports */
@media (max-width: 768px) {
    .latest-report-card {
        padding: 2rem 1.5rem;
    }

    .latest-report-card h2 {
        font-size: 1.8rem;
    }

    .latest-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .report-section {
        padding: 1.5rem 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .report-section h2 {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .stats-grid,
    .trends-grid,
    .sources-grid,
    .report-features {
        grid-template-columns: 1fr;
    }

    .bedroom-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .bedroom-label {
        min-width: auto;
    }

    .reports-archive {
        grid-template-columns: 1fr;
    }
    
    /* Fix areas table for mobile */
    .areas-table {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    
    .areas-table table {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        table-layout: auto;
        box-sizing: border-box;
    }
    
    .areas-table th,
    .areas-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .areas-table th:first-child,
    .areas-table td:first-child {
        padding-left: 0;
    }
    
    .areas-table th:last-child,
    .areas-table td:last-child {
        padding-right: 0;
    }
}

/* ============================================
   FIRST-TIME BUYER GUIDE PAGE
   ============================================ */

.ftb-section {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.ftb-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--secondary-light);
}

.ftb-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.ftb-note {
    background: rgba(102, 126, 234, 0.1);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

.ftb-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ftb-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.step-tip {
    background: rgba(251, 191, 36, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #fbbf24;
    font-size: 0.95rem;
}

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

.cost-card {
    padding: 1.75rem;
    background: var(--secondary-light);
    border-radius: 12px;
    border-top: 4px solid var(--secondary-color);
}

.cost-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.cost-card p {
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.cost-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.cost-card li {
    margin-bottom: 0.5rem;
}

.cost-example {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    color: var(--secondary-color);
}

.cost-tip {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.cost-summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.cost-summary h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.cost-total {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.areas-ftb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.area-ftb-card {
    padding: 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.area-ftb-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.area-ftb-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.area-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.area-pros {
    color: #22c55e;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.area-cons {
    color: #f59e0b;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.ftb-tip {
    background: rgba(251, 191, 36, 0.15);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #fbbf24;
    margin-top: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

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

.htb-card {
    padding: 2rem;
    background: var(--secondary-light);
    border-radius: 12px;
}

.htb-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.htb-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.htb-card li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.htb-status {
    margin-top: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    font-weight: 600;
}

.mistakes-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mistake-item {
    padding: 1.75rem;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 12px;
    border-left: 4px solid #ef4444;
}

.mistake-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.mistake-item p {
    color: var(--text-primary);
    line-height: 1.7;
}

.checklist-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.ftb-checklist {
    list-style: none;
    padding: 0;
}

.ftb-checklist li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1.6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.resource-card {
    padding: 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.resource-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.resource-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.resource-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive for FTB guide */
@media (max-width: 768px) {
    .ftb-section {
        padding: 1.5rem;
    }

    .ftb-step {
        flex-direction: column;
        gap: 1rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .costs-grid,
    .areas-ftb-grid,
    .htb-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PROPERTY CALCULATORS PAGE
   ============================================ */

.calc-section {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.calc-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--secondary-light);
}

.calc-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.calc-tab-btn {
    padding: 0.85rem 1.5rem;
    background: var(--secondary-light);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.calc-tab-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.calc-tab-btn--active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.calc-content {
    display: none;
}

.calc-content--active {
    display: block;
}

.calc-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calc-field label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calc-field input,
.calc-field select {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.calc-field input:focus,
.calc-field select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.input-wrapper {
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--text-secondary);
}

.input-wrapper input {
    padding-left: 2rem;
}

.calc-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.calc-result {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--secondary-light);
}

.calc-result h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.result-item span {
    color: var(--text-secondary);
}

.result-item strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.calc-note {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
    border-left: 4px solid #fbbf24;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.context-card {
    padding: 2rem;
    background: var(--secondary-light);
    border-radius: 12px;
}

.context-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

.context-card li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 6px;
    line-height: 1.5;
}

/* Responsive for calculators */
@media (max-width: 768px) {
    .calc-tabs {
        flex-direction: column;
    }

    .calc-tab-btn {
        width: 100%;
        text-align: center;
    }

    .calc-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .result-value {
        font-size: 2.5rem;
    }

    .calc-section {
        padding: 1.5rem;
    }

    .context-grid {
        grid-template-columns: 1fr;
    }
}

/* Sold Prices Styles */
.sold-prices-table {
    overflow-x: auto;
    margin-top: 2rem;
}

.sold-prices-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sold-prices-table thead {
    background: var(--primary-color);
    color: white;
}

.sold-prices-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.sold-prices-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.sold-prices-table tbody tr:hover {
    background: #f8fafc;
}

.sold-prices-table tbody tr:last-child td {
    border-bottom: none;
}

.search-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.postcodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.postcode-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.postcode-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

.postcode-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.postcode-card p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: #64748b;
}

.postcode-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.info-box p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Property Action Buttons */
.property-image {
    position: relative;
    overflow: hidden;
}

.property-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    z-index: 10;
}

.property-compare-btn,
.property-save-btn,
.property-alert-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    color: #334155;
    flex-shrink: 0;
}

/* Tooltip styles */
.property-compare-btn::after,
.property-save-btn::after,
.property-alert-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.property-compare-btn::before,
.property-save-btn::before,
.property-alert-btn::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 5px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 1001;
}

.property-compare-btn:hover::after,
.property-save-btn:hover::after,
.property-alert-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
}

.property-compare-btn:hover::before,
.property-save-btn:hover::before,
.property-alert-btn:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.property-compare-btn:hover,
.property-save-btn:hover,
.property-alert-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.property-compare-btn--active {
    background: var(--primary-color);
    color: white;
}

.property-compare-btn--active svg {
    stroke: white;
}

.property-save-btn.saved {
    background: var(--primary-color);
    color: white;
}

.property-save-btn.saved svg {
    fill: white;
    stroke: white;
}


@media (max-width: 768px) {
    .sold-prices-table {
        font-size: 0.85rem;
    }
    
    .sold-prices-table th,
    .sold-prices-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .postcodes-grid {
        grid-template-columns: 1fr;
    }
    
    .property-compare-btn,
    .property-save-btn,
    .property-alert-btn {
        width: 36px;
        height: 36px;
    }
}
