/* 
 * Project Phoenix Single Property Styles
 * Modern, clean interface with tabbed navigation
 * 
 * BEAVER BUILDER THEME INTEGRATION:
 * This stylesheet automatically integrates with Beaver Builder themes using
 * the FL Customizer API. CSS variables pull colors, fonts, and sizes from:
 * 
 * Beaver Builder Variables (Primary):
 * - --fl-body-font-family, --fl-heading-font-family (Typography)
 * - --fl-body-text-color, --fl-heading-text-color (Text Colors)
 * - --fl-accent, --fl-accent-hover (Brand Colors)
 * - --fl-h1-font-size through --fl-h4-font-size (Heading Sizes)
 * - --fl-body-bg-color (Background)
 * 
 * WordPress Block Theme Variables (Fallback):
 * - --wp--preset--color--primary, --wp--preset--color--foreground
 * - --wp--preset--font-family--base, --wp--preset--font-family--heading
 * - --wp--preset--font-size--large, --wp--preset--font-size--medium
 * 
 * This ensures the template inherits theme styling while maintaining
 * design integrity across different WordPress themes.
 */

/* CSS Variables for Theme Integration */
.phantom-single-property.project-phoenix-style {
    /* Font Variables - Beaver Builder + WordPress Theme Integration */
    --phoenix-font-family: var(--fl-body-font-family, var(--wp--preset--font-family--base, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif));
    --phoenix-heading-font: var(--fl-heading-font-family, var(--wp--preset--font-family--heading, var(--phoenix-font-family)));
    --phoenix-font-size: var(--fl-body-font-size, var(--wp--preset--font-size--medium, 16px));
    --phoenix-line-height: var(--fl-body-line-height, 1.6);
    
    /* Color Variables - Beaver Builder + WordPress Block Theme Integration */
    --phoenix-primary-color: var(--fl-accent, var(--wp--preset--color--primary, #2563eb));
    --phoenix-accent-color: var(--fl-accent-hover, var(--wp--preset--color--accent, #0ea5e9));
    --phoenix-text-color: var(--fl-body-text-color, var(--wp--preset--color--foreground, #333333));
    --phoenix-background-color: var(--fl-body-bg-color, var(--wp--preset--color--background, #ffffff));
    --phoenix-heading-color: var(--fl-heading-text-color, var(--wp--preset--color--contrast, #222222));
    --phoenix-link-color: var(--fl-link-color, var(--wp--preset--color--primary, #2563eb));
    --phoenix-link-hover-color: var(--fl-link-hover-color, var(--wp--preset--color--secondary, #0ea5e9));
    
    /* Additional theme-aware colors */
    --phoenix-border-color: var(--wp--preset--color--tertiary, #e5e5e5);
    --phoenix-muted-text: var(--wp--preset--color--contrast-2, #6b7280);
    --phoenix-light-bg: var(--wp--preset--color--base-2, #f8f9fa);
    
    /* Responsive font sizes - Beaver Builder integration */
    --phoenix-h1-size: var(--fl-h1-font-size, var(--wp--preset--font-size--xx-large, 2.5rem));
    --phoenix-h2-size: var(--fl-h2-font-size, var(--wp--preset--font-size--x-large, 2rem));
    --phoenix-h3-size: var(--fl-h3-font-size, var(--wp--preset--font-size--large, 1.5rem));
    --phoenix-h4-size: var(--fl-h4-font-size, var(--wp--preset--font-size--medium, 1.25rem));
    
    /* Additional styling variables */
    --phoenix-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --phoenix-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --phoenix-border-radius: 8px;
    --phoenix-border-radius-lg: 12px;
    
    /* Hero background image - dynamically set from settings */
    --phoenix-hero-bg-image: url('<?php echo esc_url(get_option('pre_hero_background_image', '')); ?>');
    
    /* Apply base styles */
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: var(--phoenix-font-family);
    font-size: var(--phoenix-font-size);
    line-height: var(--phoenix-line-height);
    color: var(--phoenix-text-color);
}

/* Theme-aware Typography and Links */
.phantom-single-property h1, 
.phantom-single-property h2, 
.phantom-single-property h3, 
.phantom-single-property h4, 
.phantom-single-property h5, 
.phantom-single-property h6 {
    font-family: var(--phoenix-heading-font);
    color: var(--phoenix-heading-color);
    line-height: 1.3;
}

.phantom-single-property h1 { font-size: var(--phoenix-h1-size); }
.phantom-single-property h2 { font-size: var(--phoenix-h2-size); }
.phantom-single-property h3 { font-size: var(--phoenix-h3-size); }
.phantom-single-property h4 { font-size: var(--phoenix-h4-size); }

.phantom-single-property a {
    color: var(--phoenix-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.phantom-single-property a:hover {
    color: var(--phoenix-link-hover-color);
    text-decoration: underline;
}

.phantom-single-property button,
.phantom-single-property .btn,
.phantom-single-property input[type="submit"] {
    background-color: var(--phoenix-primary-color);
    color: var(--phoenix-background-color);
    border: none;
    padding: 12px 24px;
    border-radius: var(--phoenix-border-radius);
    font-family: var(--phoenix-font-family);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.phantom-single-property button:hover,
.phantom-single-property .btn:hover,
.phantom-single-property input[type="submit"]:hover {
    background-color: var(--phoenix-accent-color);
}

/* Row-based Layout System */
.phantom-single-property .hero-row,
.phantom-single-property .gallery-row,
.phantom-single-property .property-details-row,
.phantom-single-property .tabs-row,
.phantom-single-property .agent-mortgage-row,
.phantom-single-property .carousel-row {
    margin-bottom: 40px;
    padding: 20px 0;
}

.phantom-single-property .tabs-row {
    background: var(--phoenix-background-color);
}

.phantom-single-property .agent-mortgage-row {
    background: #f8f9fa;
    border-radius: var(--phoenix-border-radius-lg);
    padding: 30px;
}

.phantom-single-property .agent-mortgage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Agent section styles */
.phantom-single-property .agent-section {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.phantom-single-property .agent-section h3 {
    margin: 0 0 16px 0;
    font-size: var(--phoenix-h4-size);
    font-family: var(--phoenix-heading-font);
    font-weight: 600;
    color: var(--phoenix-heading-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mortgage section styles */
.phantom-single-property .mortgage-section {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.phantom-single-property .mortgage-section h3 {
    margin: 0 0 16px 0;
    font-size: var(--phoenix-h4-size);
    font-family: var(--phoenix-heading-font);
    font-weight: 600;
    color: var(--phoenix-heading-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.phantom-single-property .mortgage-calculator .form-group {
    margin-bottom: 16px;
}

.phantom-single-property .mortgage-calculator label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--phoenix-text-color);
}

.phantom-single-property .mortgage-calculator input,
.phantom-single-property .mortgage-calculator select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.phantom-single-property .btn-calculate {
    width: 100%;
    background: var(--phoenix-primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin: 16px 0;
    transition: background-color 0.3s ease;
}

.phantom-single-property .btn-calculate:hover {
    background: var(--phoenix-accent-color);
}

.phantom-single-property .calculation-result {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    margin-top: 16px;
}

/* Responsive agent/mortgage layout */
@media (max-width: 768px) {
    .phantom-single-property .agent-mortgage-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.phantom-single-property .hero-row {
    background: var(--phoenix-background-color);
    border-bottom: 1px solid var(--phoenix-border-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    position: relative;
}

.phantom-single-property .hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    padding: 40px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.phantom-single-property .hero-row .property-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.phantom-single-property .hero-row .property-meta span {
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 4px;
}

.phantom-single-property .hero-row .price-amount {
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.phantom-single-property .hero-row .price-label {
    color: rgba(255,255,255,0.9);
}

.phantom-single-property .gallery-row {
    background: #f8f9fa;
}

.phantom-single-property .property-details-row {
    background: var(--phoenix-background-color);
    border: 1px solid var(--phoenix-border-color);
    border-radius: var(--phoenix-border-radius-lg);
    padding: 30px;
}

.phantom-single-property .tabs-sidebar-row {
    background: var(--phoenix-background-color);
}

.phantom-single-property .carousel-row {
    background: #f8f9fa;
    border-radius: var(--phoenix-border-radius-lg);
    padding: 30px;
}

/* 4-Column Property Details Grid */
.phantom-single-property .property-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.phantom-single-property .property-details-grid h3 {
    color: var(--phoenix-primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phantom-single-property .property-details-grid h3 i {
    color: var(--phoenix-accent-color);
}

.phantom-single-property .info-grid,
.phantom-single-property .financial-grid,
.phantom-single-property .location-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phantom-single-property .fact-item,
.phantom-single-property .info-item,
.phantom-single-property .financial-item,
.phantom-single-property .location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--phoenix-accent-color);
}

.phantom-single-property .fact-item i {
    margin-right: 8px;
    color: var(--phoenix-accent-color);
}

/* Responsive 4-column grid */
@media (max-width: 1024px) {
    .phantom-single-property .property-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .phantom-single-property .property-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Thumbnails Grid - Updated for Row 2 */
.phantom-single-property .gallery-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.phantom-single-property .gallery-thumbnails-grid .thumbnail-item {
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: var(--phoenix-border-radius);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phantom-single-property .gallery-thumbnails-grid .thumbnail-item:hover {
    transform: scale(1.05);
    box-shadow: var(--phoenix-shadow-lg);
}

.phantom-single-property .gallery-thumbnails-grid .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Similar Properties Carousel */
.phantom-single-property .similar-properties-section h3 {
    color: var(--phoenix-primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phantom-single-property .properties-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.phantom-single-property .carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.phantom-single-property .carousel-item {
    /* Grid will handle sizing */
    min-width: 280px;
    max-width: 350px;
}

.phantom-single-property .property-card {
    background: white;
    border-radius: var(--phoenix-border-radius);
    overflow: hidden;
    box-shadow: var(--phoenix-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phantom-single-property .property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--phoenix-shadow-lg);
}

.phantom-single-property .image-placeholder {
    height: 200px;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--phoenix-muted-text);
}

.phantom-single-property .image-placeholder i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.phantom-single-property .property-info {
    padding: 16px;
}

.phantom-single-property .carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    pointer-events: none;
}

.phantom-single-property .carousel-btn {
    background: var(--phoenix-primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: background-color 0.3s ease;
}

.phantom-single-property .carousel-btn:hover {
    background: var(--phoenix-accent-color);
}

/* Property Header - Updated for Row Structure */
.phantom-single-property .property-header {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.phantom-single-property .header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.phantom-single-property .property-title-section {
    flex: 1;
}

.phantom-single-property .property-title {
    font-size: var(--phoenix-h1-size);
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--phoenix-heading-color);
    line-height: 1.2;
    font-family: var(--phoenix-heading-font);
}

.phantom-single-property .property-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.phantom-single-property .property-status {
    background: var(--phoenix-accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.phantom-single-property .property-status.status-sold {
    background: #dc3545;
}

.phantom-single-property .property-status.status-pending {
    background: #ffc107;
    color: #333;
}

.phantom-single-property .days-on-market,
.phantom-single-property .mls-number {
    color: var(--phoenix-muted-text);
    font-size: 14px;
}

.phantom-single-property .days-on-market i {
    margin-right: 4px;
}

.phantom-single-property .property-price-section {
    text-align: right;
}

.phantom-single-property .main-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--phoenix-primary-color);
    margin-bottom: 4px;
    font-family: var(--phoenix-heading-font);
}

.phantom-single-property .price-per-sqft {
    color: #666;
    font-size: 14px;
}

/* Quick Facts - 5 Column Horizontal Layout */
.phantom-single-property .quick-facts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
    width: 100%;
    min-height: auto;
}

.phantom-single-property .fact-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.phantom-single-property .fact-item i {
    font-size: 24px;
    color: var(--phoenix-primary-color);
    margin-bottom: 8px;
}

.phantom-single-property .fact-value {
    font-size: 20px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 4px;
}

.phantom-single-property .fact-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

/* Property Gallery */
.phantom-single-property .property-gallery {
    margin-bottom: 32px;
}

.phantom-single-property .gallery-main {
    position: relative;
    margin-bottom: 16px;
}

.phantom-single-property .main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

.phantom-single-property .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phantom-single-property .gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
}

.phantom-single-property .gallery-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.phantom-single-property .gallery-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.phantom-single-property .image-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 14px;
}

.phantom-single-property .gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
}

.phantom-single-property .thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.phantom-single-property .thumbnail.active {
    border-color: var(--phoenix-primary-color);
}

.phantom-single-property .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive 4-column grid */
@media (max-width: 1024px) {
    .phantom-single-property .property-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .phantom-single-property .property-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Property Content Grid Layout - Updated for Row Structure */
.phantom-single-property .property-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 0;
}

.phantom-single-property .main-content {
    /* Main content area - takes 2/3 of the space */
    flex: 2;
}

.phantom-single-property .sidebar {
    /* Sidebar - takes 1/3 of the space */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.phantom-single-property .sidebar-section {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 32px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.phantom-single-property .sidebar-section h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--phoenix-text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.phantom-single-property .sidebar-section h3 i {
    color: var(--phoenix-primary-color);
}

/* Responsive adjustments for the grid */
@media (max-width: 968px) {
    .phantom-single-property .property-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .phantom-single-property .sidebar {
        order: -1; /* Move sidebar above main content on mobile */
    }
}

/* Tabbed Interface */
.phantom-single-property .property-tabs {
    background: var(--phoenix-background-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.phantom-single-property .tab-nav {
    display: flex;
    flex-wrap: nowrap;
    background: #f8f9fa;
    border-bottom: 1px solid var(--phoenix-border-color);
    min-width: 100%;
    overflow-x: auto;
}

.phantom-single-property .tab-btn {
    flex: 1 0 auto;
    min-width: fit-content;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--phoenix-muted-text);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--phoenix-font-family);
    border-radius: var(--phoenix-border-radius) var(--phoenix-border-radius) 0 0;
    white-space: nowrap;
}

.phantom-single-property .tab-btn:hover {
    background: #e9ecef;
    color: var(--phoenix-text-color);
}

.phantom-single-property .tab-btn.active {
    background: var(--phoenix-primary-color);
    color: white;
    box-shadow: var(--phoenix-shadow);
}

.phantom-single-property .tab-content {
    display: none;
    padding: 32px;
}

.phantom-single-property .tab-content.active {
    display: block;
}

/* Overview Tab */
.phantom-single-property .property-description {
    margin-bottom: 32px;
}

.phantom-single-property .property-description h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2b2b2b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phantom-single-property .property-description i {
    color: #007c89;
}

.phantom-single-property .description-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.phantom-single-property .key-features-grid {
    display: grid;
    gap: 24px;
}

.phantom-single-property .feature-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2b2b2b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phantom-single-property .feature-section i {
    color: #007c89;
}

.phantom-single-property .feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Responsive feature grid for smaller screens */
@media (max-width: 768px) {
    .phantom-single-property .feature-grid {
        grid-template-columns: 1fr;
    }
}

.phantom-single-property .feature-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    border-radius: 8px;
    gap: 4px;
}

.phantom-single-property .feature-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.phantom-single-property .feature-value {
    color: #333;
    font-weight: 500;
}

/* HOA Information */
.phantom-single-property .hoa-info {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    margin-top: 24px;
}

.phantom-single-property .hoa-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2b2b2b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phantom-single-property .hoa-details {
    display: grid;
    gap: 12px;
}

.phantom-single-property .hoa-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.phantom-single-property .hoa-label {
    font-weight: 600;
    color: #666;
}

.phantom-single-property .hoa-value {
    color: #333;
    font-weight: 600;
}

/* Facts & Features Tab */
.phantom-single-property .facts-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e5e5;
}

.phantom-single-property .facts-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.phantom-single-property .facts-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2b2b2b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phantom-single-property .facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.phantom-single-property .fact-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007c89;
}

.phantom-single-property .fact-label {
    font-weight: 600;
    color: #666;
}

.phantom-single-property .fact-value {
    color: #333;
    font-weight: 600;
}

/* Schools Tab */
.phantom-single-property .schools-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #2b2b2b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phantom-single-property .schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.phantom-single-property .school-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.phantom-single-property .school-icon {
    width: 48px;
    height: 48px;
    background: #007c89;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.phantom-single-property .school-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #2b2b2b;
}

.phantom-single-property .school-info p {
    color: #666;
    margin: 0;
}

.phantom-single-property .no-school-info {
    text-align: center;
    padding: 40px;
    color: #666;
}

.phantom-single-property .no-school-info i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

/* Agent Info Tab */
.phantom-single-property .agent-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #2b2b2b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phantom-single-property .agent-info-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

.phantom-single-property .agent-card {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.phantom-single-property .agent-card.co-agent {
    background: #fff;
}

.phantom-single-property .agent-name h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #2b2b2b;
}

.phantom-single-property .agent-office,
.phantom-single-property .agent-title {
    color: #666;
    margin-bottom: 16px;
}

.phantom-single-property .agent-contact {
    margin-bottom: 20px;
}

.phantom-single-property .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.phantom-single-property .contact-item i {
    color: #007c89;
    width: 16px;
}

.phantom-single-property .contact-item a {
    color: #007c89;
    text-decoration: none;
    font-weight: 600;
}

.phantom-single-property .contact-item a:hover {
    text-decoration: underline;
}

.phantom-single-property .agent-actions {
    display: flex;
    gap: 12px;
}

.phantom-single-property .btn-contact-agent,
.phantom-single-property .btn-call-agent {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phantom-single-property .btn-contact-agent.primary {
    background: #007c89;
    color: white;
}

.phantom-single-property .btn-contact-agent.primary:hover {
    background: #006570;
}

.phantom-single-property .btn-call-agent.secondary {
    background: white;
    color: #007c89;
    border: 2px solid #007c89;
}

.phantom-single-property .btn-call-agent.secondary:hover {
    background: #007c89;
    color: white;
}

/* Contact Form */
.phantom-single-property .contact-form-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.phantom-single-property .contact-form-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2b2b2b;
}

.phantom-single-property .agent-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.phantom-single-property .agent-contact-form .form-group {
    margin-bottom: 16px;
}

.phantom-single-property .agent-contact-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.phantom-single-property .agent-contact-form input,
.phantom-single-property .agent-contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.phantom-single-property .agent-contact-form input:focus,
.phantom-single-property .agent-contact-form textarea:focus {
    outline: none;
    border-color: #007c89;
    box-shadow: 0 0 0 2px rgba(0, 124, 137, 0.1);
}

.phantom-single-property .btn-send-message {
    background: #007c89;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phantom-single-property .btn-send-message:hover {
    background: #006570;
}

/* Agent Card Styling */
.phantom-single-property .agent-section .agent-card {
    border: 1px solid var(--phoenix-border-color);
    border-radius: var(--phoenix-border-radius);
    padding: 20px;
    margin-bottom: 16px;
    background: #f8f9fa;
}

.phantom-single-property .agent-section .agent-card:last-child {
    margin-bottom: 0;
}

.phantom-single-property .agent-section .agent-name h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--phoenix-text-color);
}

.phantom-single-property .agent-section .agent-office,
.phantom-single-property .agent-section .agent-title {
    margin: 0;
    font-size: 0.9rem;
    color: var(--phoenix-muted-text);
}

.phantom-single-property .agent-section .agent-contact {
    margin: 16px 0;
}

.phantom-single-property .agent-section .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.phantom-single-property .agent-section .contact-item i {
    color: var(--phoenix-primary-color);
    width: 16px;
}

.phantom-single-property .agent-section .contact-item a {
    color: var(--phoenix-text-color);
    text-decoration: none;
}

.phantom-single-property .agent-section .contact-item a:hover {
    color: var(--phoenix-primary-color);
    text-decoration: underline;
}

.phantom-single-property .agent-section .agent-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phantom-single-property .agent-section .agent-actions button {
    padding: 10px 16px;
    border-radius: var(--phoenix-border-radius);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.phantom-single-property .agent-section .btn-contact-agent.primary {
    background: var(--phoenix-primary-color);
    color: white;
}

.phantom-single-property .agent-section .btn-contact-agent.primary:hover {
    background: var(--phoenix-accent-color);
    transform: translateY(-1px);
}

.phantom-single-property .agent-section .btn-call-agent.secondary {
    background: transparent;
    color: var(--phoenix-primary-color);
    border: 1px solid var(--phoenix-primary-color);
}

.phantom-single-property .agent-section .btn-call-agent.secondary:hover {
    background: var(--phoenix-primary-color);
    color: white;
}

/* Mortgage Calculator Styling */
.phantom-single-property .mortgage-section .calc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.phantom-single-property .mortgage-section .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phantom-single-property .mortgage-section .form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--phoenix-text-color);
    margin-bottom: 4px;
}

.phantom-single-property .mortgage-section .form-group input,
.phantom-single-property .mortgage-section .form-group select {
    padding: 14px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    font-weight: 500;
}

.phantom-single-property .mortgage-section .form-group input:focus,
.phantom-single-property .mortgage-section .form-group select:focus {
    outline: none;
    border-color: var(--phoenix-primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.phantom-single-property .mortgage-section .calc-result {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--phoenix-border-radius);
    padding: 16px;
    margin: 8px 0;
}

.phantom-single-property .mortgage-section .monthly-payment {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.phantom-single-property .mortgage-section .monthly-payment .label {
    font-size: 0.85rem;
    color: var(--phoenix-muted-text);
}

.phantom-single-property .mortgage-section .monthly-payment .amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--phoenix-primary-color);
}

.phantom-single-property .mortgage-section .btn-calculate {
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--phoenix-primary-color), var(--phoenix-accent-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phantom-single-property .mortgage-section .btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.phantom-single-property .mortgage-section .btn-calculate:active {
    transform: translateY(0);
}

/* Mortgage Calculator Results */
.phantom-single-property .calculation-result {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.phantom-single-property .payment-breakdown {
    margin-bottom: 15px;
}

.phantom-single-property .payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.phantom-single-property .payment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.phantom-single-property .payment-item label {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.phantom-single-property .payment-item .amount {
    font-weight: 700;
    color: var(--phoenix-primary-color);
    font-size: 1.1em;
}

.phantom-single-property .payment-note {
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
    color: #666;
    font-style: italic;
}

.phantom-single-property .payment-note small {
    line-height: 1.4;
}

/* Floating Action Buttons */
.phantom-single-property .floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
    pointer-events: auto;
}

.phantom-single-property .fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--phoenix-primary-color);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    outline: none;
    opacity: 0.95;
}

.phantom-single-property .fab-btn:hover {
    background: var(--phoenix-accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 1;
}

.phantom-single-property .fab-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.phantom-single-property .fab-btn.favorited {
    background: #dc2626;
    color: white;
}

.phantom-single-property .fab-btn.favorited:hover {
    background: #b91c1c;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .phantom-single-property .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .phantom-single-property .property-price-section {
        text-align: left;
    }
    
    .phantom-single-property .floating-actions {
        bottom: 16px;
        right: 16px;
        gap: 8px;
    }
    
    .phantom-single-property .fab-btn {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}

/* Properties Carousel */
.phantom-single-property .carousel-row {
    background: var(--bb-section-bg, #f8fafb);
    padding: 40px 0;
    margin-top: 40px;
}

.phantom-single-property .similar-properties-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.phantom-single-property .similar-properties-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bb-heading-color, #1a1a1a);
    margin-bottom: 30px;
    text-align: center;
}

.phantom-single-property .properties-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

.phantom-single-property .carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    transition: transform 0.3s ease;
    will-change: transform;
}

.phantom-single-property .carousel-item {
    /* Grid will handle sizing */
    min-width: 280px;
    max-width: 350px;
}

.phantom-single-property .carousel-item .property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.phantom-single-property .carousel-item .property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.phantom-single-property .carousel-item .property-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.phantom-single-property .carousel-item .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.phantom-single-property .carousel-item .property-card:hover .property-image img {
    transform: scale(1.05);
}

.phantom-single-property .carousel-item .image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bb-accent-color, #007c89);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.phantom-single-property .carousel-item .image-placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
}

.phantom-single-property .carousel-item .property-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.phantom-single-property .carousel-item .property-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--bb-heading-color, #1a1a1a);
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.phantom-single-property .carousel-item .property-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--bb-accent-color, #007c89);
    margin: 0 0 8px 0;
}

.phantom-single-property .carousel-item .property-details {
    font-size: 14px;
    color: var(--bb-text-color, #666);
    margin: 0;
    line-height: 1.4;
}

.phantom-single-property .carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.phantom-single-property .carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--bb-accent-color, #007c89);
    background: white;
    color: var(--bb-accent-color, #007c89);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    outline: none;
}

.phantom-single-property .carousel-btn:hover {
    background: var(--bb-accent-color, #007c89);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 137, 0.3);
}

.phantom-single-property .carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.phantom-single-property .carousel-btn:disabled:hover {
    background: white;
    color: var(--bb-accent-color, #007c89);
}

.phantom-single-property .no-related-properties {
    text-align: center;
    padding: 60px 20px;
    color: var(--bb-text-color, #666);
    font-size: 16px;
}

/* Responsive Carousel */
@media (max-width: 1024px) {
    .phantom-single-property .carousel-item {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .phantom-single-property .carousel-row {
        padding: 30px 0;
    }
    
    .phantom-single-property .similar-properties-section {
        padding: 0 16px;
    }
    
    .phantom-single-property .similar-properties-section .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .phantom-single-property .carousel-item {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    .phantom-single-property .carousel-track {
        gap: 16px;
    }
    
    .phantom-single-property .carousel-controls {
        margin-top: 20px;
    }
}
    
    .phantom-single-property .main-price {
        font-size: 28px;
    }
    
    .phantom-single-property .property-title {
        font-size: 24px;
    }
    
    .phantom-single-property .quick-facts {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 15px;
    }
    
    .phantom-single-property .tab-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .phantom-single-property .tab-btn {
        flex: 0 0 auto;
        font-size: 14px;
        padding: 12px 16px;
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .phantom-single-property .tab-content {
        padding: 20px;
    }
    
    .phantom-single-property .facts-grid {
        grid-template-columns: 1fr;
    }
    
    .phantom-single-property .schools-grid {
        grid-template-columns: 1fr;
    }
    
    .phantom-single-property .agent-contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .phantom-single-property .agent-actions {
        flex-direction: column;
    }
    
    .phantom-single-property .floating-actions {
        bottom: 16px;
        right: 16px;
    }
    
    .phantom-single-property .fab-btn {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}

@media (max-width: 320px) {
    .phantom-single-property .quick-facts {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .phantom-single-property .tab-btn {
        flex: 1 1 100%;
        border-bottom: 1px solid #e5e5e5;
        min-width: unset;
    }
    
    .phantom-single-property .tab-btn:last-child {
        border-bottom: none;
    }
}

/* ===================================================================
   PROPERTY SEARCH INTERFACE STYLES
   =================================================================== */

/* Property Search Interface Container */
.phantom-property-search-interface {
    max-width: 100%;
    margin: 0 auto;
    font-family: var(--phoenix-font-family, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
}

/* SEARCH BAR STRUCTURE (Primary Color Header) */
.property-search-header {
    background: var(--phoenix-primary-color, #2563eb);
    padding: 20px;
    border-radius: 0;
    margin-bottom: 0;
}

.search-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-group.location {
    flex: 1;
    min-width: 250px;
}

.location-input {
    width: 300px;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.listing-type-select,
.property-type-select,
.bedroom-select,
.bathroom-select {
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    background: white;
    min-width: 120px;
    cursor: pointer;
}

.price-input {
    width: 100px;
    padding: 10px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    background: white;
    text-align: center;
}

.price-separator,
.separator {
    color: white;
    font-weight: bold;
    margin: 0 5px;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.more-options-btn {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.more-options-btn:hover {
    background: white;
    color: var(--phoenix-primary-color, #2563eb);
}

.search-btn {
    background: var(--phoenix-accent-color);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.search-btn:hover {
    background: var(--phoenix-primary-color);
    transform: translateY(-1px);
}

.favorites-count {
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* GOOGLE MAP (Full Width Below Search) */
.map-container {
    width: 100%;
    height: 500px;
    position: relative;
    margin-bottom: 0;
    border: none;
}

.map-iframe-wrapper {
    width: 100%;
    height: 100%;
}

.google-map {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.map-toggle,
.satellite-toggle {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.map-toggle.active,
.satellite-toggle.active {
    background: var(--phoenix-primary-color, #2563eb);
    color: white;
    border-color: var(--phoenix-primary-color, #2563eb);
}

.map-update-notice {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.update-map-checkbox {
    margin-right: 5px;
}

/* PROPERTY RESULTS BAR */
.results-bar {
    padding: 15px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

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

.results-count {
    font-weight: 600;
    color: #333;
}

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

.save-search-btn {
    background: var(--phoenix-accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.save-search-btn:hover {
    background: var(--phoenix-primary-color);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.view-toggles {
    display: flex;
    gap: 5px;
}

.view-toggle {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-toggle.active {
    background: var(--phoenix-primary-color, #2563eb);
    color: white;
    border-color: var(--phoenix-primary-color, #2563eb);
}

/* PROPERTY GRID */
.property-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.property-card {
    background: white;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.property-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

.property-badges {
    position: absolute;
    top: 10px;
    left: 10px;
}

.badge {
    background: var(--phoenix-accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.property-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.action-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.action-btn:hover {
    background: white;
    transform: scale(1.1);
}

.action-btn.favorited {
    color: #e74c3c;
}

.property-content {
    padding: 20px;
}

.property-price {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--phoenix-accent-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-address {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.api-notice {
    color: #e74c3c;
    font-size: 13px;
    margin: 10px 0;
    font-style: italic;
}

.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.detail-item i {
    color: var(--phoenix-primary-color, #2563eb);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.view-details-btn {
    background: var(--phoenix-primary-color, #2563eb);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.view-details-btn:hover {
    background: var(--phoenix-accent-color, #0ea5e9);
    text-decoration: none;
    color: white;
}

.listing-date {
    font-size: 12px;
    color: #999;
}

/* No Properties Found */
.no-properties-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-logo {
    height: 60px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-properties-found h3 {
    color: #333;
    margin-bottom: 15px;
}

.no-properties-found p {
    color: #666;
    margin-bottom: 25px;
}

.suggested-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.reset-search-btn {
    background: var(--phoenix-accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    margin-top: 20px;
}

.reset-search-btn:hover {
    background: var(--phoenix-primary-color);
    text-decoration: none;
    color: white;
}

.reset-search {
    background: var(--phoenix-accent-color);
    color: white;
}

.expand-search {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

/* Pagination */
.search-pagination {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 30px;
}

.search-pagination ul {
    display: inline-flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-pagination li {
    margin: 0;
}

.search-pagination a,
.search-pagination span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.search-pagination a:hover {
    background: var(--phoenix-primary-color, #2563eb);
    color: white;
    border-color: var(--phoenix-primary-color, #2563eb);
}

.search-pagination .current {
    background: var(--phoenix-primary-color, #2563eb);
    color: white;
    border-color: var(--phoenix-primary-color, #2563eb);
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
        justify-content: stretch;
    }
    
    .filter-group.location {
        width: 100%;
    }
    
    .location-input {
        width: 100%;
    }
    
    .listing-type-select,
    .property-type-select,
    .bedroom-select,
    .bathroom-select {
        width: 100%;
    }
    
    .filter-group.price {
        justify-content: space-between;
    }
    
    .results-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .results-actions {
        justify-content: space-between;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .property-search-header {
        padding: 15px;
    }
    
    .search-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .property-details {
        flex-direction: column;
        gap: 8px;
    }
}

/* === COMPREHENSIVE SEARCH STYLES === */
.comprehensive-search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.comprehensive-search-input:focus {
    outline: none;
    border-color: var(--phoenix-accent-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.neighborhood-input,
.mls-input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    min-width: 150px;
    transition: border-color 0.3s;
}

.neighborhood-input:focus,
.mls-input:focus {
    outline: none;
    border-color: var(--phoenix-accent-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* === ADDITIONAL FEATURES ROW === */
.search-features-row {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 15px;
    flex-wrap: wrap;
}

.feature-group {
    display: flex;
    align-items: center;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--phoenix-text-color);
    position: relative;
}

.feature-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.feature-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.feature-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--phoenix-accent-color);
    border-color: var(--phoenix-accent-color);
}

.feature-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.feature-checkbox:hover .checkmark {
    border-color: var(--phoenix-accent-color);
}

/* More Options Toggle */
.more-options-btn {
    background: transparent;
    color: var(--phoenix-accent-color);
    border: 1px solid var(--phoenix-accent-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.more-options-btn:hover {
    background: var(--phoenix-accent-color);
    color: white;
}

/* === RESPONSIVE SEARCH FEATURES === */
@media (max-width: 768px) {
    .comprehensive-search-input {
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .search-features-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .feature-group {
        width: 100%;
    }
}

/* ==========================================================================
   2-Column Layout Styles
   ========================================================================== */
.phantom-single-property .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.phantom-single-property .details-column {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.phantom-single-property .details-column h4 {
    color: var(--phoenix-heading-color);
    font-family: var(--phoenix-heading-font);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--phoenix-primary-color);
}

.phantom-single-property .details-column .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.phantom-single-property .details-column .detail-item:last-child {
    border-bottom: none;
}

.phantom-single-property .details-column .detail-label {
    font-weight: 500;
    color: var(--phoenix-text-color);
    font-size: 14px;
}

.phantom-single-property .details-column .detail-value {
    font-weight: 600;
    color: var(--phoenix-heading-color);
    text-align: right;
    font-size: 14px;
}

/* Enhanced Agent Info Column */
.agent-info-column {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    border: 1px solid var(--phoenix-primary-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.agent-info-column h3 {
    color: var(--phoenix-primary-color);
    font-family: var(--phoenix-heading-font);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.agent-info-column .agent-detail {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.agent-info-column .agent-detail:last-child {
    border-bottom: none;
}

.agent-info-column .agent-label {
    font-weight: 600;
    color: var(--phoenix-text-color);
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.agent-info-column .agent-value {
    color: var(--phoenix-heading-color);
    font-size: 14px;
    word-wrap: break-word;
}

/* Enhanced Mortgage Calculator */
.phantom-single-property .mortgage-calculator-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(252, 248, 255, 0.95));
    border: 1px solid var(--phoenix-accent-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.phantom-single-property .mortgage-calculator-container h3 {
    color: var(--phoenix-accent-color);
    font-family: var(--phoenix-heading-font);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.phantom-single-property .mortgage-calculator-container .calculator-field {
    margin-bottom: 15px;
}

.phantom-single-property .mortgage-calculator-container label {
    font-weight: 600;
    color: var(--phoenix-text-color);
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.phantom-single-property .mortgage-calculator-container input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--phoenix-font-family);
    transition: border-color 0.3s ease;
}

.phantom-single-property .mortgage-calculator-container input:focus {
    border-color: var(--phoenix-accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.phantom-single-property .mortgage-calculator-container .calculate-btn {
    background: var(--phoenix-accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.phantom-single-property .mortgage-calculator-container .calculate-btn:hover {
    background: var(--phoenix-link-hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.phantom-single-property .mortgage-calculator-container .result {
    margin-top: 15px;
    padding: 15px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--phoenix-accent-color);
}

/* Enhanced Section Consistency */
.property-template .tab-content > div {
    padding: 30px;
}

.property-template .section-title {
    color: var(--phoenix-heading-color);
    font-family: var(--phoenix-heading-font);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--phoenix-primary-color);
}

/* Mobile Responsive Enhancements */
@media screen and (max-width: 768px) {
    .property-template {
        margin: 10px;
    }
    
    .property-header {
        padding: 20px;
    }
    
    .property-title {
        font-size: 24px;
    }
    
    .property-address {
        font-size: 16px;
    }
    
    /* Mobile 2-Column Layout */
    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .details-column,
    .agent-info-column,
    .mortgage-calculator-container {
        padding: 20px;
    }
    
    .property-template .tab-content > div {
        padding: 20px;
    }
}

/* ===== NEW TEMPLATE STRUCTURE STYLES ===== */

/* Row 1: Property Header (Address + Price) */
.phantom-single-property .property-header-row {
    background: var(--pre-primary-color);
    color: white;
    padding: 20px 0;
    border-bottom: 3px solid var(--pre-secondary-color);
}

.phantom-single-property .property-header-row .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.phantom-single-property .property-address-section {
    flex: 0 0 70%;
}

.phantom-single-property .property-address {
    font-size: 2.4em;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.phantom-single-property .property-price-section {
    flex: 0 0 30%;
    text-align: right;
}

.phantom-single-property .price-display .price-amount {
    font-size: 3.2em;
    font-weight: 800;
    color: var(--pre-secondary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: -0.02em;
    display: block;
    line-height: 1;
}

/* Row 2: Hero Image (Clean) */
.phantom-single-property .hero-image-row {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.phantom-single-property .hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.phantom-single-property .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phantom-single-property .no-hero-image {
    width: 100%;
    height: 100%;
    background: var(--pre-light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--pre-dark-gray);
}

.phantom-single-property .no-hero-image i {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Mobile Responsiveness for Header */
@media (max-width: 768px) {
    .phantom-single-property .property-header-row .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .phantom-single-property .property-address-section,
    .phantom-single-property .property-price-section {
        flex: none;
        text-align: center;
    }
    
    .phantom-single-property .property-address {
        font-size: 1.8em;
    }
    
    .phantom-single-property .price-display .price-amount {
        font-size: 2.6em;
    }
    
    .phantom-single-property .hero-image-row {
        height: 250px;
    }
}