/* ==========================================
   CSS RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange-accent: #00a862;
    --orange-hover: #008c51;
    --blue-accent: #0f62fe;
    --blue-hover: #0353e9;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e0e0e0;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --max-width: 1280px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--blue-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--blue-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.2s ease;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    padding: var(--spacing-xs) 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--orange-accent);
    border-bottom-color: var(--orange-accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery-section {
    background-color: #f5f5f5;
    position: relative;
}

.gallery-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.gallery-main {
    position: relative;
    width: 100%;
    min-height: 460px;
    max-height: 540px;
    overflow: hidden;
    background: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
}

.gallery-track {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-wrap: nowrap;
}

.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    box-sizing: border-box;
}

.multi-gallery-slide {
    height: 100%;
    padding: var(--spacing-md);
    box-sizing: border-box;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-sm);
    height: 100%;
}

.gallery-cell {
    flex: 1;
    border-radius: 14px;
    overflow: hidden;
    background-color: #dcdcdc;
    position: relative;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

.gallery-cell img,
.gallery-cell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-cell.video video {
    background-color: #000;
}

.gallery-cell.placeholder {
    opacity: 0;
    pointer-events: none;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.gallery-nav:hover {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.gallery-nav-prev {
    left: var(--spacing-lg);
}

.gallery-nav-next {
    right: var(--spacing-lg);
}

.gallery-counter {
    position: absolute;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Share Bar */
.gallery-share-bar {
    display: flex;
    justify-content: center;
    padding: var(--spacing-md);
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--orange-accent) 0%, var(--orange-hover) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 124, 0, 0.4);
}

.share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 124, 0, 0.3);
}

.share-btn svg {
    flex-shrink: 0;
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.main-content {
    min-height: 100vh;
}

/* Scroll offset for sticky header */
section[id] {
    scroll-margin-top: 80px;
}

aside[id] {
    scroll-margin-top: 80px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--spacing-xl);
    align-items: start;
}

/* ==========================================
   PROPERTY DETAILS
   ========================================== */
.property-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.property-header {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.property-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.property-badge {
    background-color: var(--orange-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-views {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    margin-top: var(--spacing-xs);
    opacity: 1;
}

.property-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.property-stats {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 15px;
}

.stat svg {
    color: var(--text-light);
}

.stat strong {
    color: var(--text-primary);
    font-weight: 600;
}

.property-address {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: var(--spacing-sm);
}

.property-address svg {
    flex-shrink: 0;
}

.property-payment {
    color: var(--text-secondary);
    font-size: 15px;
}

.property-payment strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================
   OPEN HOUSE BANNER
   ========================================== */
.open-house {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid var(--orange-accent);
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.open-house-icon {
    font-size: 32px;
}

.open-house-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 2px;
}

.open-house-details {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

/* ==========================================
   HIGHLIGHTS
   ========================================== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--bg-gray);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-primary);
}

.highlight-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* ==========================================
   ABOUT & DESCRIPTION
   ========================================== */
.about-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* ==========================================
   HOME DETAILS
   ========================================== */
.details-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.detail-category {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-md);
}

.detail-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-item::before {
    content: "•";
    color: var(--orange-accent);
    font-weight: 700;
    font-size: 18px;
}

/* ==========================================
   COMMUNITY INFO
   ========================================== */
.community-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

/* Community Features Section */
.community-features {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.subsection-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.subsection-title:first-child {
    margin-top: 0;
}

.community-amenity {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.community-list {
    list-style: disc;
    padding-left: 24px;
    margin: 0;
}

.community-list li {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* Area Factors Section */
.area-factors,
.environmental-factors {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.factor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.factor-item {
    padding: var(--spacing-md);
    background-color: var(--bg-gray);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
}

.factor-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.factor-icon {
    font-size: 28px;
}

.factor-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.factor-score {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 4px;
}

.factor-sublabel {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.factor-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-orange);
    margin: 12px 0 4px;
}

.factor-max {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
}

.factor-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

.sources-text {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 16px;
    text-align: left;
}

.factor-source {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: var(--spacing-sm);
}

/* ==========================================
   INFO CARDS (Schools, Parks, Transit)
   ========================================== */
.schools-grid,
.parks-grid,
.transit-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.info-card {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--bg-gray);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.info-card-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.info-card-content {
    flex: 1;
}

.info-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-card-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.card {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

/* ==========================================
   AGENT CARD
   ========================================== */
.agent-header {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.agent-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-gray);
}

.agent-info {
    flex: 1;
}

.agent-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.agent-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.agent-company {
    font-size: 13px;
    color: var(--text-light);
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.agent-contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: 6px;
    color: var(--text-primary);
    background-color: var(--bg-gray);
    transition: background-color 0.2s ease;
}

.agent-contact-item:hover {
    background-color: #e8eaf0;
}

.disclosure-helper-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin: 12px 0 8px;
    padding: 0 8px;
    line-height: 1.4;
}

.agent-contact-item svg {
    color: var(--orange-accent);
    flex-shrink: 0;
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-helper {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-style: italic;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-message {
    padding: var(--spacing-sm);
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

.form-message.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.form-disclaimer {
    margin-top: var(--spacing-sm);
}

.form-disclaimer p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.btn-primary {
    background-color: var(--orange-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--orange-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
}

.sticky-cta {
    position: sticky;
    bottom: var(--spacing-lg);
}

/* ==========================================
   OTHER LISTINGS CAROUSEL
   ========================================== */
.other-listings-section {
    background-color: #fafafa;
    padding: 60px 0;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.other-listings-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.other-listings-section .section-title {
    text-align: left;
    margin: 0 0 40px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.other-listings-carousel {
    position: relative;
    margin: 0 -60px;
    padding: 0 60px;
}

.listings-wrapper {
    overflow: hidden;
    position: relative;
}

.listings-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.listing-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.listing-image-container {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    background: #f0f0f0;
}

.listing-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-status {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(245, 124, 0, 0.95);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.listing-address {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.listing-city {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.listing-specs {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.listing-spec {
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-description {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-agent {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: var(--text-secondary);
}

.listing-agent-name {
    font-weight: 600;
    color: var(--text-primary);
}

.listings-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.listings-nav:hover {
    background-color: white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.listings-nav-prev {
    left: 8px;
}

.listings-nav-next {
    right: 8px;
}

.listings-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.pagination-dot.active {
    background: var(--orange-accent);
    width: 24px;
    border-radius: 5px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--text-primary);
    color: white;
    margin-top: 0;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-address {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: var(--spacing-xs);
}

.footer-powered {
    font-size: 13px;
    margin-top: var(--spacing-xs);
}

.footer-link-tony {
    color: var(--orange-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link-tony:hover {
    color: var(--orange-hover);
    text-decoration: underline;
}

/* ==========================================
   FLOATING MOBILE CTA BUTTON
   ========================================== */
.floating-mobile-cta {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--orange-accent) 0%, var(--orange-hover) 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    z-index: 9999;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    animation: floatPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 168, 98, 0.4);
}

.floating-mobile-cta:active {
    transform: translateX(-50%) scale(0.95);
}

.floating-mobile-cta svg {
    flex-shrink: 0;
}

@keyframes floatPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0, 168, 98, 0.4);
    }
    50% {
        box-shadow: 0 12px 32px rgba(0, 168, 98, 0.6);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .nav {
        gap: var(--spacing-lg);
    }

    .property-price {
        font-size: 32px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-nav-prev {
        left: var(--spacing-md);
    }

    .gallery-nav-next {
        right: var(--spacing-md);
    }

    .gallery-main {
        min-height: 360px;
        max-height: 420px;
    }

    .multi-gallery-slide {
        padding: var(--spacing-sm);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }

    /* Other Listings */
    .other-listings-carousel {
        margin: 0 -50px;
        padding: 0 50px;
    }

    .listing-card {
        flex: 0 0 calc(50% - 10px);
    }

    .listings-nav {
        width: 40px;
        height: 40px;
    }

    .listings-nav-prev {
        left: 5px;
    }

    .listings-nav-next {
        right: 5px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Show floating CTA on mobile */
    .floating-mobile-cta {
        display: flex !important;
    }

    /* Hide agent card on mobile - only show floating button */
    .sidebar {
        display: none !important;
    }

    /* Add padding so floating button doesn't cover footer */
    .footer {
        padding-bottom: 100px;
    }

    .header-container {
        padding: var(--spacing-md);
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .container {
        padding: var(--spacing-md);
    }

    .property-price {
        font-size: 28px;
    }

    .property-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

    .schools-grid,
    .parks-grid,
    .transit-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
    }

    .gallery-nav-prev {
        left: var(--spacing-sm);
    }

    .gallery-nav-next {
        right: var(--spacing-sm);
    }

    .gallery-counter {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        font-size: 12px;
        padding: 6px var(--spacing-sm);
    }

    .gallery-main {
        min-height: 320px;
        max-height: none;
        overflow: hidden;
        position: relative;
    }
    
    .gallery-track {
        height: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, minmax(0, 1fr));
        gap: var(--spacing-sm);
    }

    .section-title {
        font-size: 20px;
    }

    .card {
        padding: var(--spacing-md);
    }

    /* Other Listings */
    .other-listings-section {
        padding: 40px 0;
    }

    .other-listings-section .container {
        padding: 0 20px;
    }

    .other-listings-section .section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .other-listings-carousel {
        margin: 0;
        padding: 0;
    }
    
    .listings-wrapper {
        overflow: hidden;
        width: 100%;
        position: relative;
    }
    
    .listings-track {
        gap: 0;
        display: flex;
        align-items: stretch;
        flex-wrap: nowrap;
    }

    .listing-card {
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    .listing-card:hover {
        transform: none;
    }
    
    .listing-image-container {
        padding-top: 60%;
    }
    
    .listings-nav {
        display: flex !important;
        z-index: 10;
        top: 30%;
        transform: translateY(-50%);
    }
    
    .listings-nav-prev {
        left: 8px;
    }
    
    .listings-nav-next {
        right: 8px;
    }

    .listing-content {
        padding: 16px;
        box-sizing: border-box;
    }

    .listing-price {
        font-size: 20px;
    }

    .listing-specs {
        font-size: 12px;
        gap: 12px;
    }

    .listing-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .listing-agent {
        font-size: 11px;
    }

    .listings-nav {
        width: 36px;
        height: 36px;
    }

    .listings-nav-prev {
        left: 4px;
    }

    .listings-nav-next {
        right: 4px;
    }

    .listings-pagination {
        margin-top: 24px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo-image {
        height: 45px;
    }

    .logo-text {
        font-size: 18px;
    }

    .property-price {
        font-size: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        min-height: 260px;
        max-height: none;
    }
}

/* ==========================================
   ANIMATIONS & TRANSITIONS
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section,
.card {
    animation: fadeIn 0.3s ease-out;
}

/* ==========================================
   QUICK ACTIONS MENU (MOBILE)
   ========================================== */
.quick-actions-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quick-actions-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quick-actions-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 20px 20px 0 0;
    padding: var(--spacing-lg);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.quick-actions-overlay.active .quick-actions-container {
    transform: translateY(0);
}

.quick-actions-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-gray);
    color: var(--text-secondary);
    font-size: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quick-actions-close:hover {
    background-color: var(--border-color);
}

.quick-actions-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-right: 40px;
}

.quick-actions-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-btn:hover,
.quick-action-btn:active {
    border-color: var(--orange-accent);
    background-color: #fef3e9;
    transform: scale(1.02);
}

.quick-action-btn svg {
    flex-shrink: 0;
    color: var(--orange-accent);
}

.quick-action-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.quick-action-detail {
    font-size: 13px;
    color: var(--text-secondary);
}

.call-btn:active {
    background-color: #e8f5e9;
    border-color: #4caf50;
}

.call-btn:active svg {
    color: #4caf50;
}

.email-btn:active {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.email-btn:active svg {
    color: #2196f3;
}

.disclosure-btn {
    background: linear-gradient(135deg, var(--orange-accent) 0%, var(--orange-hover) 100%);
    color: white;
    border-color: var(--orange-accent);
}

.disclosure-btn svg {
    color: white;
}

.disclosure-btn .quick-action-label,
.disclosure-btn .quick-action-detail {
    color: white;
}

.disclosure-btn:hover,
.disclosure-btn:active {
    background: linear-gradient(135deg, var(--orange-hover) 0%, #d84315 100%);
    border-color: var(--orange-hover);
    transform: scale(1.02);
}

/* ==========================================
   MODAL POPUP STYLES
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: var(--spacing-lg);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-gray);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--bg-gray);
    border-radius: 6px;
    border-left: 3px solid var(--orange-accent);
}

/* ==========================================
   ERROR PAGE STYLES
   ========================================== */
.error-page-section {
    padding: 80px var(--spacing-lg);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
}

.error-page-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.error-icon-wrapper {
    margin-bottom: var(--spacing-xl);
    animation: fadeIn 0.5s ease-out;
}

.error-icon {
    margin: 0 auto;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.error-message {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.btn-error-primary {
    padding: 16px 32px;
    background-color: var(--orange-accent);
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-error-primary:hover {
    background-color: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 98, 0.3);
    color: white;
}

.btn-error-secondary {
    padding: 14px 32px;
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-error-secondary:hover {
    border-color: var(--text-primary);
    background-color: var(--bg-gray);
    color: var(--text-primary);
}

.error-help {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.error-help p {
    font-size: 15px;
    color: var(--text-secondary);
}

.error-help a {
    color: var(--orange-accent);
    font-weight: 600;
    text-decoration: none;
}

.error-help a:hover {
    color: var(--orange-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .modal-container {
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
    }

    .modal-header {
        padding: var(--spacing-md);
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-body {
        padding: var(--spacing-md);
    }

    .modal-close {
        width: 36px;
        height: 36px;
    }

    .error-page-section {
        padding: 60px var(--spacing-md);
    }

    .error-title {
        font-size: 26px;
    }

    .error-message {
        font-size: 15px;
    }

    .error-icon-wrapper svg {
        width: 100px;
        height: 100px;
    }

    .error-actions {
        flex-direction: column;
    }

    .btn-error-primary,
    .btn-error-secondary {
        width: 100%;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .header,
    .footer,
    .gallery-nav,
    .sticky-cta,
    .contact-card {
        display: none;
    }

    .gallery-main {
        page-break-inside: avoid;
    }

    .section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

