/* ============================================
   Splash Screen Overlay
   ============================================ */
#splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s;
}
#splash-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#splash-overlay.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s;
}
#splash-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    width: 180px;
}
#splash-logo {
    max-width: 140px;
    max-height: 140px;
    animation: splash-pulse 2.2s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}
#splash-image {
    max-width: 92vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
#splash-video {
    width: 100%;
    height: 100vh;
    object-fit: contain;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
@media (orientation: portrait) {
    #splash-video {
        width: 100%;
        height: auto;
        max-height: 100vh;
    }
}
@media (orientation: landscape) {
    #splash-video {
        width: 100%;
        height: 100vh;
    }
}
@keyframes splash-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.13); }
    60% { transform: scale(0.93); }
    100% { transform: scale(1); }
}
#heroVideo {
    width: min(96vw, 100%);
    max-width: 96vw;
    height: auto;
    max-height: 35vh;
    aspect-ratio: auto;
    margin: 0 auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    display: block;
}

.hero-video-wrap {
    position: relative;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

#heroPlayBtn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    #heroVideo {
        width: min(96vw, 100%);
        max-width: 96vw;
        max-height: 55vh;
        border-radius: 0;
    }
    .hero {
        padding: 8px 0;
    }
}
/* ============================================
   Oates Property Holdings - Client Stylesheet
   Light, modern, responsive design
   ============================================ */

:root {
    --primary: #63666a;
    --primary-light: #63666a;
    --accent: #3498db;
    --accent-dark: #2980b9;
    --success: #27ae60;
    --text: #2c3e50;
    --text-muted: #7f8c8d;
    --bg: #f8f9fa;
    --bg-white: #ffffff;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    overflow-x: hidden;
    width: 100%;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden !important;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ============================================
   Header
   ============================================ */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 16px 0;
    gap: 20px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    max-height: 80px !important;
    margin-right: 0 !important;
}

.header-text-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--accent);
}

.admin-link {
    background: var(--primary);
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.admin-link:hover {
    background: var(--primary-light);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: #fff;
    color: var(--text);
    padding: 24px 0;
    text-align: center;
    border-top: 2px solid #63666a;
    border-bottom: 2px solid #63666a;
    border-left: none;
    border-right: none;
    width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    overflow-x: hidden;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 16px;
    font-weight: 700;
    /* unchanged */
}

.hero-content p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    /* unchanged */
}

/* ============================================
   Sections
   ============================================ */
.featured-section,
.search-section,
.listings-section,
.contact-section,
.property-detail-section {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Center and size hero video */
#heroVideo {
    width: min(96vw, 100%);
    max-width: 96vw;
    height: auto;
    max-height: 35vh;
    aspect-ratio: auto;
    margin: 0 auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    display: block;
    box-sizing: border-box;
}
.section-title {
    font-size: 32px;
    margin-bottom: 32px;
    color: var(--primary);
    text-align: center;
}

/* ============================================
   Property Cards
   ============================================ */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
}

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

.property-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.property-card.featured {
    border: 2px solid var(--accent);
}

.property-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.property-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
}

.property-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.property-badge.available-soon {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: auto;
    background: #f0ad4e;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary);
}

.property-location {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.property-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 12px;
}

.property-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.property-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
}

.property-features span {
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 6px;
}

/* ============================================
   Search Form
   ============================================ */
.search-section {
    background: var(--bg-white);
}

.search-form {
    max-width: 900px;
    margin: 0 auto;
}

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

.search-grid input,
.search-grid select {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.search-grid input:focus,
.search-grid select:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-search {
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-search:hover {
    background: var(--accent-dark);
}

/* ============================================
   Results
   ============================================ */
.results-count {
    text-align: center;
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--text-muted);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 18px;
}

/* ============================================
   Property Detail Page
   ============================================ */
.property-detail {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
}

.property-detail-image {
    position: relative;
}

.property-detail-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Image Gallery */
.property-gallery .main-image {
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-gallery .main-image img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    padding: 12px;
    background: var(--bg);
}

.thumbnail-gallery .thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s;
}

.thumbnail-gallery .thumbnail:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.thumbnail-gallery .thumbnail.active {
    border-color: var(--accent);
}

.property-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
}

.property-detail-info {
    padding: 32px;
}

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

.property-header h1 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 8px;
}

.property-location-large {
    font-size: 18px;
    color: var(--text-muted);
}

.property-price-large {
    font-size: 40px;
    font-weight: 700;
    color: var(--success);
    text-align: right;
}

.property-price-large span {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
}

.property-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.feature-box {
    background: var(--bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    font-size: 32px;
}

.feature-box strong {
    font-size: 24px;
    color: var(--primary);
    display: block;
}

.feature-box span {
    font-size: 14px;
    color: var(--text-muted);
}

.property-description,
.property-location-details {
    margin-bottom: 32px;
}

.property-description h2,
.property-location-details h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary);
}

.property-description p,
.property-location-details p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 8px;
}

.property-cta {
    background: var(--bg);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.property-cta h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--primary);
}

.property-cta p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

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

.property-enquiry-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.property-enquiry-modal-content {
    width: min(100%, 1040px);
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.property-enquiry-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.property-enquiry-modal-header h4 {
    margin: 0;
    color: var(--primary);
    font-size: 20px;
}

#closeEnquiryModal {
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.property-enquiry-form {
    background: var(--bg-white);
    border: none;
    border-radius: 0;
    padding: 18px;
}

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

.property-enquiry-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.property-enquiry-form input,
.property-enquiry-form select,
.property-enquiry-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
}

.property-enquiry-form input[readonly] {
    background: var(--bg);
    cursor: not-allowed;
}

.property-enquiry-choice,
.property-enquiry-extra {
    margin-top: 14px;
}

.property-enquiry-actions {
    margin-top: 16px;
}

.property-enquiry-calendar {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.property-enquiry-calendar iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block;
    border: 0;
}

@media (max-width: 600px) {
    .property-enquiry-modal {
        padding: 8px;
    }

    .property-enquiry-modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 10px;
    }

}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info,
.contact-cta {
    padding: 32px;
    background: var(--bg);
    border-radius: 12px;
}

.contact-info h3,
.contact-cta h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary);
}

.contact-info p,
.contact-cta p {
    margin-bottom: 12px;
    font-size: 16px;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 32px 20px;
    margin-top: 60px;
}

.footer p {
    margin: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 24px !important;
    }

    .hero-content p {
        font-size: 14px !important;
    }

    .section-title {
        font-size: 26px;
    }

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

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

    .property-header {
        flex-direction: column;
    }

    .property-header h1 {
        font-size: 28px;
    }

    .property-price-large {
        text-align: left;
        font-size: 32px;
    }

    .property-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

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

    .nav {
        gap: 12px;
        font-size: 14px;
    }

    .logo {
        font-size: 18px;
    }
}

@media (max-width: 480px) {

    .hero {
        padding: 6px 0;
        width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .hero-content h2 {
        font-size: 20px !important;
    }

    .hero-content p {
        font-size: 12px !important;
    }

    .featured-section,
    .search-section,
    .listings-section,
    .contact-section,
    .property-detail-section {
        padding: 40px 20px;
    }

    .property-detail-info {
        padding: 20px;
    }

    .contact-info,
    .contact-cta {
        padding: 20px;
    }

    .property-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
