/**
 * Walka Grange Properties - Frontend Styles
 * 
 * GLOBAL STYLE GUIDE
 * ==================
 * 
 * COLORS:
 * - Navy: #0F283E
 * - Blue-Grey: #4F6180
 * - Blue: #9EC4D4 (Phone/Social Icons)
 * - Light Blue: #BAD4DE
 * - Bright Green: #67B045
 * - Lime Green: #C4CC2E
 * 
 * TYPOGRAPHY:
 * - Headings: Raleway & Bricolage Grotesque – various sizes
 * - Intro text: Bricolage Grotesque Medium 24. Auto line height
 * - Body: Roboto Regular 18. 24 line height
 * - Button & Navigation: Roboto Medium 16 with 12% letter spacing
 */

/* ========================================
   CSS Variables - Global Style Guide
   ======================================== */
:root {
    /* Colors */
    --wgp-navy: #0F283E;
    --wgp-blue-grey: #4F6180;
    --wgp-blue: #9EC4D4;
    --wgp-light-blue: #BAD4DE;
    --wgp-bright-green: #67B045;
    --wgp-lime-green: #C4CC2E;
    --wgp-white: #FFFFFF;
    
    /* Color Tints */
    --wgp-light-blue-tint: #E8F4F8;
    --wgp-navy-light: #1a3a52;
    
    /* Typography */
    --font-heading: 'Raleway', sans-serif;
    --font-heading-alt: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Font Sizes */
    --text-intro: 24px;
    --text-body: 18px;
    --text-button: 16px;
    
    /* Line Heights */
    --lh-body: 24px;
    --lh-intro: auto;
    
    /* Letter Spacing */
    --ls-button: 0.12em;
}

/* ========================================
   Base Typography
   ======================================== */
body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--text-body);
    line-height: var(--lh-body);
    color: var(--wgp-blue-grey);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--wgp-navy);
}

/* Intro Text Style */
.wgp-intro-text {
    font-family: var(--font-heading-alt);
    font-weight: 500;
    font-size: var(--text-intro);
    line-height: auto;
    color: var(--wgp-blue-grey);
}

/* Button & Navigation Text Style */
.wgp-button-text,
.wgp-nav-text {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--text-button);
    letter-spacing: var(--ls-button);
    text-transform: uppercase;
}

/* ========================================
   Single Property Page
   ======================================== */
.wgp-single-property {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--text-body);
    line-height: var(--lh-body);
    color: var(--wgp-blue-grey);
}

/* Hero Section - Full Width Bleed */
.wgp-hero {
    background-color: var(--wgp-light-blue);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.wgp-hero-container {
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 450px;
}

.wgp-hero-content {
    padding: 60px 60px 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 700px;
    margin-left: auto;
}

.wgp-hero-image {
    position: relative;
    overflow: hidden;
}

.wgp-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 968px) {
    .wgp-hero-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .wgp-hero-content {
        padding: 40px 20px;
        max-width: 100%;
        margin-left: 0;
    }
    .wgp-hero-image {
        height: 350px;
    }
}

/* Hero Title - Line 1: "For Sale : Villa XX" */
.wgp-hero-title {
    font-family: 'Bricolage Grotesque', var(--font-heading-alt), sans-serif;
    font-size: 35px;
    font-weight: 700;
    color: var(--wgp-navy);
    margin: 0;
    line-height: 100%;
    letter-spacing: 0;
}

/* Hero Subtitle - Line 2: "Available XXth Month" */
.wgp-hero-title .wgp-availability {
    display: block;
    font-family: 'Bricolage Grotesque', var(--font-heading-alt), sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0;
    margin-top: 5px;
    margin-bottom: 25px;
}

/* Hero Description - Intro paragraph */
.wgp-hero-description {
    margin-bottom: 0;
}

.wgp-hero-description p {
    font-family: 'Bricolage Grotesque', var(--font-heading-alt), sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--wgp-navy);
    margin: 0 0 20px 0;
}

.wgp-hero-description p:last-child {
    margin-bottom: 0;
}

/* Hide price/status/features in hero - not in Figma design */
.wgp-hero-meta,
.wgp-features {
    display: none;
}

.wgp-status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: var(--ls-button);
    text-transform: uppercase;
}

.wgp-status-available {
    background-color: rgba(103, 176, 69, 0.15);
    color: var(--wgp-bright-green);
}

.wgp-status-under-offer {
    background-color: rgba(196, 204, 46, 0.2);
    color: #9a9f24;
}

.wgp-status-sold {
    background-color: rgba(15, 40, 62, 0.1);
    color: var(--wgp-navy);
}

/* Floor Plan & Inclusions Section - Matches Figma */
.wgp-floorplan-section {
    padding: 60px 0;
    background-color: var(--wgp-white);
}

.wgp-floorplan-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 968px) {
    .wgp-floorplan-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
}

.wgp-floorplan {
    text-align: center;
}

.wgp-floorplan img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.wgp-floorplan-caption {
    margin-top: 15px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--wgp-blue-grey);
    cursor: pointer;
}

.wgp-floorplan-caption:hover {
    color: var(--wgp-bright-green);
    text-decoration: underline;
}

.wgp-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wgp-navy);
    margin: 0 0 25px 0;
}

/* Inclusions Grid - Card Style like Figma */
.wgp-inclusions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 600px) {
    .wgp-inclusions-list {
        grid-template-columns: 1fr;
    }
}

.wgp-inclusions-list li {
    background-color: var(--wgp-light-blue);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--wgp-navy);
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.wgp-inclusions-list li:hover {
    background-color: var(--wgp-blue);
}

/* Gallery Section - Full Width Carousel Style */
.wgp-gallery-section {
    padding: 0;
    background-color: var(--wgp-white);
    position: relative;
}

.wgp-gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.wgp-gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.wgp-gallery-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
}

.wgp-gallery-slide img {
    width: 100%;
    height: 900px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .wgp-gallery-slide img {
        height: 400px;
    }
}

/* Gallery Navigation Arrows */
.wgp-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--wgp-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.wgp-gallery-nav:hover {
    background-color: var(--wgp-light-blue);
}

.wgp-gallery-nav.prev {
    left: 30px;
}

.wgp-gallery-nav.next {
    right: 30px;
}

.wgp-gallery-nav svg {
    width: 20px;
    height: 20px;
    stroke: var(--wgp-navy);
}

/* Walka Grange Advantage Section */
.wgp-advantage-section {
    padding: 80px 0;
    background-color: var(--wgp-navy);
    color: var(--wgp-white);
}

.wgp-advantage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.wgp-advantage-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 50px 0;
    color: var(--wgp-white);
}

.wgp-advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 992px) {
    .wgp-advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .wgp-advantage-grid {
        grid-template-columns: 1fr;
    }
    .wgp-advantage-container {
        padding: 0 20px;
    }
}

.wgp-advantage-item {
    text-align: center;
}

.wgp-advantage-icon {
    margin-bottom: 20px;
}

.wgp-advantage-icon svg {
    stroke: var(--wgp-light-blue);
}

.wgp-advantage-item h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--wgp-white);
}

.wgp-advantage-item p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
    color: var(--wgp-white);
}

/* ========================================
   Archive / Listing Page
   ======================================== */
.wgp-archive-page {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--text-body);
    line-height: var(--lh-body);
    color: var(--wgp-blue-grey);
}

.wgp-archive-content {
    padding: 60px 0;
}

.wgp-archive-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--wgp-navy);
    text-align: center;
    margin: 0 0 10px 0;
}

.wgp-archive-subtitle {
    font-family: var(--font-heading-alt);
    font-weight: 500;
    font-size: var(--text-intro);
    color: var(--wgp-blue-grey);
    text-align: center;
    margin: 0 0 40px 0;
}

.wgp-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Filters */
.wgp-archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.wgp-filter-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--wgp-white);
    border: 2px solid var(--wgp-navy);
    color: var(--wgp-navy);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--text-button);
    letter-spacing: var(--ls-button);
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.wgp-filter-btn:hover,
.wgp-filter-btn.active {
    background-color: var(--wgp-navy);
    color: var(--wgp-white);
}

/* Properties Grid */
.wgp-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Property Card */
.wgp-property-card {
    background: var(--wgp-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wgp-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.wgp-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.wgp-card-image .wgp-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
}

.wgp-no-image {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wgp-blue-grey);
    font-size: 1rem;
}

.wgp-card-content {
    padding: 25px;
}

.wgp-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.wgp-card-title a {
    color: var(--wgp-navy);
    text-decoration: none;
}

.wgp-card-title a:hover {
    color: var(--wgp-bright-green);
}

.wgp-card-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wgp-navy);
    margin-bottom: 15px;
}

.wgp-card-features {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-family: var(--font-body);
    color: var(--wgp-blue-grey);
}

.wgp-card-availability {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--wgp-blue-grey);
    margin-bottom: 20px;
}

.wgp-card-button {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--wgp-navy);
    color: var(--wgp-white);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--text-button);
    letter-spacing: var(--ls-button);
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.wgp-card-button:hover {
    background-color: var(--wgp-navy-light);
    color: var(--wgp-white);
}

/* No Results */
.wgp-no-results {
    text-align: center;
    padding: 60px 20px;
}

.wgp-no-results p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--wgp-blue-grey);
    margin-bottom: 20px;
}

.wgp-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--wgp-navy);
    color: var(--wgp-white);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--text-button);
    letter-spacing: var(--ls-button);
    text-transform: uppercase;
    border-radius: 4px;
}

.wgp-btn:hover {
    background-color: var(--wgp-navy-light);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .wgp-hero {
        padding: 40px 0;
    }
    
    .wgp-hero-title {
        font-size: 1.8rem;
    }
    
    .wgp-hero-title .wgp-availability {
        font-size: 1.2rem;
    }
    
    .wgp-price {
        font-size: 1.5rem;
    }
    
    .wgp-section-title,
    .wgp-advantage-title {
        font-size: 1.5rem;
    }
    
    .wgp-archive-header h1 {
        font-size: 1.8rem;
    }
}
