/**
 * FUSION REALTY - MAIN STYLESHEET (style.css)
 * 
 * Project: Fusion Realty Website
 * Version: 3.4
 * Date: January 18, 2026
 * 
 * Changes in v3.4:
 * - Fixed mobile search button not working (tap targets)
 * - Added mobile-specific filter form styles
 * - Improved touch-friendly button sizing on mobile
 * - Added filter button container styles (.filter-btn-container)
 * 
 * Changes in v3.3:
 * - Fixed form validation styles - feedback now hidden by default
 * - Added validation icons (green tick, red exclamation)
 * - Added proper input-group validation support
 * - Added checkbox validation styling
 * - Added was-validated fallback for older browsers
 * - Textarea validation icons removed (too tall)
 * 
 * Changes in v3.2:
 * - Removed dead .hero-slider code (replaced by Ken Burns slider in slider.css)
 * - Updated H1 & H2 colors to Primary Blue (#005c87) on white backgrounds
 * - H3-H6 remain dark charcoal (#2F3A4A) on white backgrounds
 * - All headings remain Gold (#d9bb89) on blue backgrounds
 * 
 * Previous changes (v3.1):
 * - Removed print styles - now consolidated in print.css
 * 
 * Framework: Bootstrap 5.x
 * 
 * This stylesheet works WITH Bootstrap to provide:
 * - Brand-specific colors and typography
 * - Custom components and layouts
 * - Full responsive design (mobile, tablet, desktop)
 * - Cross-browser compatibility
 * 
 * COLOR PALETTE:
 * - Primary Blue: #005c87 (backgrounds, headers, navigation, H1/H2)
 * - Gold Accent: #d9bb89 (headings on blue, buttons, highlights)
 * - Link Blue: #00aeff (text links, interactive elements)
 * - Primary Text: #2F3A4A (body text, H3-H6 on white)
 * - Light Text: #d9bb89 (text on blue backgrounds)
 * 
 * TYPOGRAPHY:
 * - Font: 'Open Sans', Arial, Helvetica, sans-serif
 * - H1: 36-42px bold, Primary Blue on white
 * - H2: 28-32px bold, Primary Blue on white
 * - H3: 22-24px semi-bold, Dark charcoal on white
 * - Body: 16-18px, line-height 1.6-1.8
 * 
 * RESPONSIVE BREAKPOINTS:
 * - Mobile: 320-767px
 * - Tablet: 768-1023px
 * - Desktop: 1024-1439px
 * - Large Desktop: 1440px+
 * 
 * NOTE: Homepage slider styles are in slider.css (Ken Burns effect)
 * NOTE: Print styles are consolidated in print.css
 */

/* ============================================
   CSS VARIABLES (Custom Properties)
   ============================================ */
:root {
    /* Brand Colors */
    --primary-blue: #005c87;
    --gold-accent: #d9bb89;
    --link-blue: #00aeff;
    --primary-text: #2F3A4A;
    --light-text: #d9bb89;
    --white: #FFFFFF;
    --footer-bg: #2F3A4A;
    
    /* Typography */
    --font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    --font-size-base: 16px;
    --font-size-large: 18px;
    --font-size-small: 14px;
    --line-height-base: 1.7;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 6px;
    --border-radius-lg: 8px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}


/* ============================================
   RESET & BASE STYLES
   ============================================ */

/* Box-sizing for all elements */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Base HTML & Body */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--primary-text);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--link-blue);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */

/* Headings - Base styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

/* H1 & H2 - Primary Blue on white backgrounds (brand presence) */
h1, .h1,
h2, .h2 {
    color: var(--primary-blue);
}

h1, .h1 {
    font-size: 2.5rem; /* 40px */
    font-weight: 700;
}

h2, .h2 {
    font-size: 2rem; /* 32px */
    font-weight: 700;
}

/* H3-H6 - Dark charcoal on white backgrounds (readability) */
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    color: var(--primary-text);
}

h3, .h3 {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
}

h4, .h4 {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
}

h5, .h5 {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
}

h6, .h6 {
    font-size: 1rem; /* 16px */
    font-weight: 600;
}

/* Headings on blue backgrounds - ALL become Gold */
.bg-primary-blue h1,
.bg-primary-blue h2,
.bg-primary-blue h3,
.bg-primary-blue h4,
.bg-primary-blue h5,
.bg-primary-blue h6,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6 {
    color: var(--gold-accent);
}

/* Paragraphs */
p {
    margin-bottom: var(--spacing-md);
}

/* Links */
a {
    color: var(--link-blue);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--link-blue);
    outline-offset: 2px;
}

/* Strong & Bold */
strong, b {
    font-weight: 700;
}

/* Small text */
small, .small {
    font-size: var(--font-size-small);
    line-height: 1.5;
}

/* Lists */
ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--gold-accent);
    padding-left: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    font-style: italic;
    color: var(--primary-text);
}


/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Background Colors */
.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

.bg-gold-accent {
    background-color: var(--gold-accent) !important;
}

.bg-light-gray {
    background-color: #f8f9fa !important;
}

/* Text Colors */
.text-primary-blue {
    color: var(--primary-blue) !important;
}

.text-gold-accent {
    color: var(--gold-accent) !important;
}

.text-link-blue {
    color: var(--link-blue) !important;
}

.text-white {
    color: var(--white) !important;
}

/* Spacing Utilities (complement Bootstrap) */
.section-padding {
    padding: var(--spacing-xxl) 0;
}

.section-padding-sm {
    padding: var(--spacing-xl) 0;
}

/* Shadows */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}


/* ============================================
   HEADER & NAVIGATION
   ============================================ */

/* Main Header */
.site-header {
    background-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

/* Logo */
.site-header .navbar-brand img {
    max-height: 60px;
    width: auto;
    transition: transform var(--transition-fast);
}

.site-header .navbar-brand:hover img {
    transform: scale(1.05);
}

/* Navigation */
.navbar {
    padding: var(--spacing-sm) 0;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: var(--spacing-xs) var(--spacing-md) !important;
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--gold-accent) !important;
}

.navbar-nav .nav-link.active {
    color: var(--gold-accent) !important;
}

/* Dropdown Menu */
.navbar .dropdown-menu {
    background-color: var(--primary-blue);
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xs) 0;
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    transition: all var(--transition-fast);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: rgba(217, 187, 137, 0.2);
    color: var(--gold-accent);
}

.navbar .dropdown-item i {
    width: 1.5rem;
}

/* Register & Login Buttons in Nav */
.nav-btn-register,
.nav-btn-login {
    border-radius: var(--border-radius-sm);
    margin-left: var(--spacing-xs);
}

.nav-btn-register {
    background-color: var(--gold-accent) !important;
    color: var(--primary-blue) !important;
}

.nav-btn-register:hover {
    background-color: #c9ab79 !important;
}

.nav-btn-login {
    background-color: transparent !important;
    border: 2px solid var(--white) !important;
}

.nav-btn-login:hover {
    background-color: var(--white) !important;
    color: var(--primary-blue) !important;
}


/* ============================================
   BUTTONS
   ============================================ */

/* Primary Button */
.btn-primary {
    background-color: var(--gold-accent);
    border-color: var(--gold-accent);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #c9ab79;
    border-color: #c9ab79;
    color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

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

/* Secondary Button */
.btn-secondary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #004a6d;
    border-color: #004a6d;
}

/* Outline Primary */
.btn-outline-primary {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

/* Button Sizes */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}


/* ============================================
   FORMS
   ============================================ */

/* Form Controls */
.form-control,
.form-select {
    border: 1px solid #ced4da;
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--link-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 174, 255, 0.25);
}

/* Form Labels */
.form-label {
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

/* Form Validation (v3.3) */
/* Hide validation feedback by default */
.invalid-feedback,
.valid-feedback {
    display: none;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Show feedback only when form has been validated */
.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:valid ~ .valid-feedback,
.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-valid ~ .valid-feedback {
    display: block;
}

/* Validation icons */
.form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
    padding-right: 2.5rem;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='5.5' fill='none' stroke='%23dc3545'/%3e%3cline x1='6' y1='3' x2='6' y2='7' stroke='%23dc3545' stroke-width='1.5'/%3e%3ccircle cx='6' cy='9' r='0.75' fill='%23dc3545'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
    padding-right: 2.5rem;
}

/* No validation icons for textarea (too tall) */
textarea.form-control.is-valid,
textarea.form-control.is-invalid {
    background-image: none;
    padding-right: 1rem;
}

/* Checkbox validation */
.form-check-input.is-invalid ~ .form-check-label {
    color: #dc3545;
}

.form-check-input.is-valid ~ .form-check-label {
    color: #198754;
}


/* ============================================
   PROPERTY FILTER SECTION (v3.4 - Mobile Fix)
   ============================================ */

/* Filter section styling */
.filter-section {
    background-color: #f8f9fa;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-lg);
}

/* Filter form labels */
.filter-section .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Filter button container (v3.4) */
.filter-btn-container {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 100%;
}

/* Search button styles (v3.4) */
.filter-btn-container .btn-search {
    flex: 1;
    min-height: 44px; /* Touch-friendly minimum */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-weight: 600;
    /* Ensure button is fully clickable */
    position: relative;
    z-index: 1;
    /* Prevent text selection on tap */
    -webkit-user-select: none;
    user-select: none;
    /* Improve tap response */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Clear button (v3.4) */
.filter-btn-container .btn-clear {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Results info styling */
.results-info {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}


/* ============================================
   CARDS (General)
   ============================================ */

.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: var(--spacing-md);
}

.card-title {
    color: var(--primary-text);
    margin-bottom: var(--spacing-sm);
}


/* ============================================
   PROPERTY CARDS
   ============================================ */

/* Property Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

/* Property Card */
.property-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* Property Card Image */
.property-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

/* Property Badge */
.property-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Property Card Content */
.property-card-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: var(--spacing-xs);
}

.property-card-title a {
    color: inherit;
    text-decoration: none;
}

.property-card-title a:hover {
    color: var(--primary-blue);
}

.property-card-location {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

/* Property Specs (Mini) */
.property-specs-mini {
    display: flex;
    gap: var(--spacing-md);
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.property-specs-mini span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Property Price */
.property-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: auto;
}

/* Status price override */
.property-price.status-price {
    color: #6c757d;
    font-style: italic;
}


/* ============================================
   PROPERTY LIST VIEW
   ============================================ */

.properties-list .property-card {
    flex-direction: row;
    height: auto;
}

.properties-list .property-card-image {
    width: 300px;
    min-width: 300px;
    height: 200px;
}

.properties-list .property-card-content {
    width: 100%;
}


/* ============================================
   PROPERTY DETAIL PAGE
   ============================================ */

/* Property Gallery */
.property-gallery {
    margin-bottom: var(--spacing-lg);
}

.property-gallery-main {
    height: 500px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

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

.property-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-xs);
}

.property-gallery-thumb {
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.property-gallery-thumb:hover,
.property-gallery-thumb.active {
    opacity: 1;
}

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

/* Property Detail Header */
.property-detail-header {
    margin-bottom: var(--spacing-lg);
}

.property-detail-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.property-detail-address {
    color: #6c757d;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.property-detail-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Property Specs */
.property-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: #f8f9fa;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
}

.property-spec-item {
    text-align: center;
}

.property-spec-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
}

.property-spec-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-text);
}

.property-spec-label {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Property Description */
.property-description {
    margin-bottom: var(--spacing-lg);
}

.property-description h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

/* Property Features */
.property-features {
    margin-bottom: var(--spacing-lg);
}

.property-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    list-style: none;
    padding: 0;
}

.property-features-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.property-features-list li i {
    color: var(--gold-accent);
}

/* Property Enquiry Box */
.property-enquiry-box {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    position: sticky;
    top: 100px;
}

.property-enquiry-box h3 {
    color: var(--gold-accent);
    margin-bottom: var(--spacing-md);
}


/* ============================================
   SEARCH BAR
   ============================================ */

.property-search-bar {
    background-color: var(--primary-blue);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-lg);
}

.property-search-bar .form-control,
.property-search-bar .form-select {
    border: none;
}


/* ============================================
   NO RESULTS STATE
   ============================================ */

.no-results {
    text-align: center;
    padding: var(--spacing-xxl);
    background-color: #f8f9fa;
    border-radius: var(--border-radius-lg);
}

.no-results i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: var(--spacing-md);
}


/* ============================================
   LOADING OVERLAY
   ============================================ */

.properties-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: var(--border-radius-lg);
}

.properties-loading.active {
    display: flex;
}

.properties-container {
    position: relative;
    min-height: 200px;
}


/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.site-footer a {
    color: var(--white);
}

.site-footer a:hover {
    color: var(--gold-accent);
}

/* Footer Columns */
.footer-column h5 {
    color: var(--gold-accent);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

/* Footer Contact */
.footer-contact p {
    margin-bottom: var(--spacing-xs);
}

.footer-contact i {
    width: 1.5rem;
    color: var(--gold-accent);
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--gold-accent);
    color: var(--primary-blue);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.875rem;
}


/* ============================================
   HERO SECTIONS (Page Headers)
   ============================================ */

.hero-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-blue);
}

/* Hero section heading colors - override to white */
.hero-section h1 {
    color: var(--white);
}

/* Hero subtitles/taglines - white on blue backgrounds */
.hero-section .lead,
.hero-section .subtitle,
.hero-section p.lead {
    color: var(--white);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    h1, .h1 {
        font-size: 2.625rem; /* 42px */
    }
}

/* Desktop (1024-1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 1140px;
    }
    
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet (768-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    h1, .h1 {
        font-size: 2.25rem; /* 36px */
    }
    
    h2, .h2 {
        font-size: 1.875rem; /* 30px */
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .property-gallery-main {
        height: 400px;
    }
    
    .footer-column {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Filter button container - tablet (v3.4) */
    .filter-btn-container {
        margin-top: var(--spacing-sm);
    }
}

/* Mobile (320-767px) */
@media (max-width: 767px) {
    /* Typography adjustments */
    html {
        font-size: 14px;
    }
    
    h1, .h1 {
        font-size: 1.875rem; /* 30px */
    }
    
    h2, .h2 {
        font-size: 1.5rem; /* 24px */
    }
    
    h3, .h3 {
        font-size: 1.25rem; /* 20px */
    }
    
    /* Spacing adjustments */
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
    
    .section-padding-sm {
        padding: var(--spacing-lg) 0;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: var(--spacing-sm) var(--spacing-md) !important;
    }
    
    .navbar-collapse {
        background-color: var(--primary-blue);
        padding: var(--spacing-md);
        margin-top: var(--spacing-sm);
        border-radius: var(--border-radius-md);
    }
    
    /* Property Grid */
    .properties-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .property-card-image {
        height: 200px;
    }
    
    /* Property List View */
    .properties-list .property-card {
        flex-direction: column;
    }
    
    .properties-list .property-card-image {
        width: 100%;
        height: 200px;
    }
    
    /* Search Bar */
    .property-search-bar {
        padding: var(--spacing-md);
    }
    
    /* Filter buttons mobile fix (v3.4) */
    .filter-btn-container {
        flex-direction: column;
        width: 100%;
        margin-top: var(--spacing-sm);
    }
    
    .filter-btn-container .btn-search,
    .filter-btn-container .btn-clear {
        width: 100%;
        min-height: 48px; /* Larger touch target on mobile */
        font-size: 1rem;
    }
    
    .filter-btn-container .btn-search {
        order: 1;
    }
    
    .filter-btn-container .btn-clear {
        order: 2;
    }
    
    /* Filter section mobile (v3.4) */
    .filter-section {
        padding: var(--spacing-sm);
    }
    
    .filter-section .form-control,
    .filter-section .form-select {
        min-height: 44px; /* Touch-friendly */
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    /* Property Detail */
    .property-detail-title {
        font-size: 1.75rem;
    }
    
    .property-detail-price {
        font-size: 1.5rem;
    }
    
    .property-gallery-main {
        height: 250px;
    }
    
    .property-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-enquiry-box {
        position: static;
        margin-top: var(--spacing-xl);
    }
    
    /* Footer */
    .footer-column {
        margin-bottom: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Contact Form */
    .contact-info {
        margin-bottom: var(--spacing-lg);
    }
}

/* Extra Small Mobile (320-479px) */
@media (max-width: 479px) {
    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    
    .property-search-bar {
        padding: var(--spacing-sm);
    }
    
    .property-specs {
        grid-template-columns: 1fr;
    }
    
    .property-gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Extra small mobile filter (v3.4) */
    .filter-section .row > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}


/* ============================================
   NOTE: Print styles have been consolidated into print.css v3.1
   Do not add @media print blocks to this file.
   ============================================ */


/* ============================================
   NOTE: Homepage slider styles are in slider.css
   The Ken Burns slider uses class .hero-slider-kenburns
   ============================================ */


/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    z-index: 9999;
}

.skip-to-main:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    * {
        border-color: currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--link-blue);
    outline-offset: 3px;
}


/* ============================================
   BROWSER-SPECIFIC FIXES
   ============================================ */

/* Safari fixes */
@supports (-webkit-appearance: none) {
    .form-control,
    .form-select {
        -webkit-appearance: none;
    }
}

/* Firefox fixes */
@-moz-document url-prefix() {
    .form-select {
        padding-right: 2rem;
    }
}

/* IE11 fixes (minimal support) */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .properties-grid {
        display: -ms-grid;
    }
}


/* ============================================
   ANIMATIONS
   ============================================ */

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

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

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

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

/* Animation classes */
.fade-in {
    animation: fadeIn var(--transition-normal);
}

.fade-in-up {
    animation: fadeInUp var(--transition-normal);
}

.slide-in-left {
    animation: slideInFromLeft var(--transition-normal);
}

.slide-in-right {
    animation: slideInFromRight var(--transition-normal);
}


/* ============================================
   UTILITY CLASSES FOR BOOTSTRAP OVERRIDE
   ============================================ */

/* Override Bootstrap primary color */
.bg-primary {
    background-color: var(--primary-blue) !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

/* Custom spacing utilities */
.mt-section {
    margin-top: var(--spacing-xxl);
}

.mb-section {
    margin-bottom: var(--spacing-xxl);
}

.py-section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}


/* ============================================
   END OF STYLESHEET
   ============================================ */
