/* Lux Core Frontend Styles */

:root {
    --lux-color-gold: var(--accent, #c5a47e);
    --lux-color-dark: var(--contrast, #1a1a1a);
    --lux-color-gray: var(--contrast-3, #666);
    --lux-font-serif: "Playfair Display", serif;
}

/* Price Field */
.lux-field-price .lux-value {
    font-size: 1.5rem;
    color: var(--lux-color-dark);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

/* Specs Grid */
.lux-specs-grid {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 1.5rem 0;
    margin: 2rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.lux-spec-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.lux-spec-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -1.5rem;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #e5e5e5;
}

.lux-spec-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--lux-color-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.lux-spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--lux-color-gray);
    font-weight: 500;
}

/* Gallery Grid */
.lux-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.lux-gallery-item {
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.lux-gallery-item:hover {
    transform: translateY(-2px);
}

.lux-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.lux-gallery-item:hover img {
    transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .lux-specs-grid {
        gap: 1.5rem;
    }

    .lux-spec-item:not(:last-child)::after {
        display: none;
    }

    .lux-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}

/* =========================================
   Block: Featured Property
   ========================================= */
.lux-featured-block {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 4rem 0;
}

.lux-featured-image {
    width: 60%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.lux-featured-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.lux-featured-content {
    width: 40%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.lux-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.lux-featured-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.lux-location {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--lux-color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.lux-price {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--accent);
}

.lux-button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.lux-button:hover {
    background: var(--lux-color-gold);
    color: #fff;
}

@media (max-width: 900px) {

    .lux-featured-image,
    .lux-featured-content {
        width: 100%;
    }

    .lux-featured-image {
        min-height: 300px;
    }
}


/* =========================================
   Block: Property Grid
   ========================================= */
.lux-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.lux-card {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.lux-card:hover {
    transform: translateY(-5px);
}

.lux-card-image {
    position: relative;
    padding-top: 66%;
    /* 3:2 Aspect Ratio */
    overflow: hidden;
}

.lux-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    z-index: 2;
    pointer-events: none;
}

.lux-card-image img,
.lux-placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.lux-card-details {
    padding: 1.5rem;
}

.lux-card-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.lux-card-details h3 a {
    text-decoration: none;
    color: var(--lux-color-dark);
}

.lux-card-price {
    font-size: 1.1rem;
    color: var(--lux-color-gold);
    font-weight: 500;
    margin-bottom: 1rem;
}

.lux-card-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--lux-color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   IDX IMPress Omnibar Styles
   ========================================= */
/* Wrapper Class: .lux-hero-search (Apply this to the GB Container) */
.lux-hero-search form {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 4px;
    width: 100%;
}

.lux-hero-search input[type="text"] {
    flex-grow: 1;
    border: none !important;
    background: transparent !important;
    border-bottom: 2px solid #fff !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0 !important;
}

.lux-hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.lux-hero-search input[type="submit"],
.lux-hero-search button {
    background: var(--lux-color-gold) !important;
    color: #fff !important;
    border: none !important;
    padding: 0 2rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-left: 1rem;
}

.lux-hero-search input[type="submit"]:hover,
.lux-hero-search button:hover {
    background: #fff !important;
    color: var(--lux-color-dark) !important;
}

/* Mobile */
@media (max-width: 600px) {
    .lux-hero-search form {
        flex-direction: column;
        gap: 1rem;
    }

    .lux-hero-search input[type="submit"],
    .lux-hero-search button {
        margin-left: 0;
        padding: 1rem !important;
    }
}

/* =========================================
   IDX IMPress Results Styles
   ========================================= */
#IDX-newSearch,
#IDX-modifySearch,
#IDX-saveSearch {
    background: #fff !important;
    color: var(--lux-color-dark) !important;
    border: 1px solid var(--lux-color-dark) !important;
    padding: 0.5rem 1.5rem !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    letter-spacing: 1px;
    border-radius: 0 !important;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit !important;
}

#IDX-saveSearch:hover {
    background: var(--lux-color-dark) !important;
    color: #fff !important;
}

/* Fix generic IDX container text and layout */
#IDX-main,
#IDX-wrapper,
.IDX-wrapper-standard,
div[id^="IDX-main"] {
    font-family: inherit !important;
    color: var(--lux-color-dark) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem;
    width: 100%;
}

/* =========================================
   Single Property Template (Monte Carlo Style)
   ========================================= */

/* Force Full Width on Property Pages (GeneratePress Override) */
body.single-property #page,
body.single-property .site.grid-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-property .site-content {
    padding: 0 !important;
    max-width: 100% !important;
    display: block !important;
    /* Ensure flex/grid doesn't restrict */
}

/* Ensure the main content area is also full width */
body.single-property #primary,
body.single-property #main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.lux-property-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.lux-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
}

.lux-hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
}

.lux-hero-title {
    font-family: var(--lux-font-serif);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #fff;
}

.lux-hero-location {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.9;
}

/* Specs Bar */
.lux-specs-bar {
    background-color: #0d1b2a;
    /* Deep Blue/Black */
    color: #fff;
    padding: 3rem 0;
}

.lux-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.lux-specs-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.lux-spec-col {
    text-align: center;
}

.lux-spec-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--lux-color-gold);
    /* Gold accents */
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.lux-spec-val {
    display: block;
    font-size: 1.5rem;
    font-family: var(--lux-font-serif);
}

/* Main Content */
.lux-main-content {
    padding: 4rem 2rem;
}

.lux-entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--lux-color-gray);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery Masonry */
.lux-gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.lux-gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.lux-gallery-item img:hover {
    transform: scale(1.02);
}

/* Agent Section */
.lux-agent-section {
    /* max-width: 800px; Removed to align with remaining content */
    /* margin: 0 auto; */
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 3rem;
}

.lux-section-title {
    font-family: var(--lux-font-serif);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--lux-color-dark);
}

.lux-agent-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.lux-agent-image {
    flex-shrink: 0;
    /* Prevents image from shrinking */
}

.lux-agent-image img,
.lux-agent-image img.sab-custom-avatar {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    min-width: 150px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

.lux-agent-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--lux-color-dark);
}

.lux-agent-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--lux-color-gray);
    margin-bottom: 1rem;
}

.lux-button-gold {
    background: var(--lux-color-gold);
    color: #fff;
    border: none;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 1rem;
}

.lux-agent-cta {
    color: var(--lux-color-dark);
    font-family: var(--lux-font-serif);
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.4;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--lux-color-gold);
    display: inline-block;
    max-width: 100%;
}

.lux-button-gold:hover {
    background: var(--lux-color-dark);
}

@media (max-width: 768px) {
    .lux-hero-title {
        font-size: 2rem;
    }

    .lux-specs-row {
        flex-direction: column;
        align-items: center;
    }

    .lux-gallery-masonry {
        grid-template-columns: 1fr;
    }

    .lux-agent-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Gravity Forms Button Override */
.lux-contact-form .gform_footer input[type='submit'] {
    background: var(--lux-color-gold) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 30px !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border-radius: 0 !important;
    /* Optional: Match theme radius if needed */
}

.lux-contact-form .gform_footer input[type='submit']:hover {
    background: var(--lux-color-dark) !important;
}

/* Footer Offices Grid */
.lux-footer-offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    width: 100%;
}

.lux-footer-office-item {
    margin-bottom: 2rem;
}

.lux-footer-office-title {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.lux-footer-office-content p {
    color: #e5e5e5;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.lux-footer-office-content a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.lux-footer-office-content a:hover {
    opacity: 0.8;
}

/* Make sure the headings override any theme defaults if inside footer */
.site-footer .lux-footer-office-title {
    color: #fff;
}