/* =====================================================
   Detail Page - Green Acres Inspired Design
   ===================================================== */

/* ---------- Variables & Base ---------- */
.detail-greenacres {
    --ga-navy: #021b2e;
    --ga-navy-light: #143d5c;
    --ga-gold: #d4a574;
    --ga-gold-light: #e8c9a0;
    --ga-cream: #faf8f5;
    --ga-white: #ffffff;
    --ga-text: #3d3d3d;
    --ga-text-light: #8a8a8a;
    --ga-border: #e8e4df;
    --ga-shadow: 0 4px 40px rgba(26, 35, 50, 0.08);
    --ga-shadow-hover: 0 20px 60px rgba(26, 35, 50, 0.15);
    --ga-radius: 12px;
    --ga-radius-sm: 8px;
}

.detail-greenacres {
    background: var(--ga-cream);
    padding-bottom: 80px;
}

/* ---------- Detail Header / Back ---------- */
.detail-header-bar {
    background: var(--ga-white);
    border-bottom: 1px solid var(--ga-border);
    padding: 16px 0;
    position: sticky;
    top: 86px;
    z-index: 100;
}

.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ga-navy);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.detail-back-btn:hover {
    color: var(--ga-gold);
}

.detail-back-btn i {
    font-size: 0.8rem;
}

/* ---------- Gallery Grid (Plaza Immo Style) ---------- */
.ga-gallery-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.plaza-gallery {
    display: grid;
    grid-template-areas:
        "item1 item1 item2 item3"
        "item1 item1 item4 item5";
    gap: 16px;
    height: 550px;
    padding: 0;
}

.plaza-gallery .plaza-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.plaza-gallery .plaza-item > a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.plaza-gallery .plaza-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.plaza-gallery .plaza-item.item1 {
    grid-area: item1;
}

.plaza-gallery .plaza-item.item2 {
    grid-area: item2;
}

.plaza-gallery .plaza-item.item3 {
    grid-area: item3;
}

.plaza-gallery .plaza-item.item4 {
    grid-area: item4;
}

.plaza-gallery .plaza-item.item5 {
    grid-area: item5;
}

/* Overlay on hover */
.plaza-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 35, 50, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.plaza-item:hover .plaza-overlay {
    opacity: 1;
}

.plaza-overlay i {
    color: var(--ga-white);
    font-size: 2rem;
}

/* Photo count badge */
.plaza-photo-count {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(26, 35, 50, 0.85);
    color: var(--ga-white);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.plaza-photo-count i {
    font-size: 0.9rem;
}

/* Reference badge on main image */
.plaza-ref-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,0.95);
    color: var(--ga-navy);
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Action buttons on main image */
.plaza-gallery-actions {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.plaza-gallery-actions .plaza-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ga-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ga-navy);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
}

.plaza-gallery-actions .plaza-action-btn:hover {
    background: var(--ga-gold);
    color: var(--ga-white);
}

/* Single image fallback */
.plaza-gallery-single {
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
}

.plaza-gallery-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile gallery */
@media (max-width: 991px) {
    .plaza-gallery {
        height: 400px;
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .plaza-gallery {
        grid-template-areas:
            "item1 item1"
            "item2 item3"
            "item4 item5";
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 130px 130px;
        height: auto;
        gap: 6px;
        border-radius: 0;
        margin: 0 -15px;
    }

    .plaza-gallery-single {
        height: 280px;
        border-radius: 0;
        margin: 0 -15px;
    }

    .plaza-gallery-actions {
        bottom: 10px;
        left: 10px;
    }

    .plaza-gallery-actions .plaza-action-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .plaza-photo-count {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .detail-header-bar {
        top: 70px;
    }
}

/* ---------- Info Main Section ---------- */
.ga-info-section {
    background: var(--ga-white);
    border-radius: var(--ga-radius);
    padding: 35px;
    margin-bottom: 20px;
    box-shadow: var(--ga-shadow);
}

.ga-title-block {
    margin-bottom: 20px;
}

.ga-agency-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ga-agency-name img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid var(--ga-border);
    padding: 2px;
}

.ga-agency-name span {
    font-size: 0.9rem;
    color: var(--ga-text-light);
    font-weight: 500;
}

.ga-property-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: var(--ga-navy);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

/* Price block */
.ga-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.ga-price-main {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--ga-gold);
    font-weight: 700;
    line-height: 1;
}

.ga-price-main .symbol {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
}

.ga-price-per-m2 {
    font-size: 0.9rem;
    color: var(--ga-text-light);
}

.ga-location {
    color: var(--ga-text-light);
    font-size: 1rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ga-location i {
    color: var(--ga-gold);
    font-size: 0.9rem;
}

.ga-location a {
    color: var(--ga-text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.ga-location a:hover {
    color: var(--ga-gold);
}

/* Characteristics tags */
.ga-char-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ga-border);
}

.ga-char-tag {
    background: var(--ga-cream);
    border: 1px solid var(--ga-border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--ga-text);
    font-weight: 500;
}

/* Action buttons */
.ga-action-btns {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.ga-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--ga-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--ga-border);
    background: var(--ga-white);
    color: var(--ga-navy);
    text-decoration: none;
}

.ga-btn-action:hover {
    border-color: var(--ga-gold);
    color: var(--ga-gold);
}

.ga-btn-action i {
    font-size: 0.9rem;
}

.ga-btn-action.ga-btn-primary {
    background: var(--ga-navy);
    color: var(--ga-white);
    border-color: var(--ga-navy);
}

.ga-btn-action.ga-btn-primary:hover {
    background: var(--ga-gold);
    border-color: var(--ga-gold);
}

/* ---------- Main Characteristics (Icons) ---------- */
.ga-main-chars {
    background: var(--ga-white);
    border-radius: var(--ga-radius);
    padding: 35px;
    margin-bottom: 20px;
    box-shadow: var(--ga-shadow);
}

.ga-section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ga-text-light);
    font-weight: 600;
    margin-bottom: 25px;
}

.ga-chars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.ga-char-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.ga-char-item:hover .ga-char-icon {
    background: var(--ga-gold);
}

.ga-char-icon {
    width: 50px;
    height: 50px;
    background: var(--ga-navy);
    border-radius: var(--ga-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s;
}

.ga-char-icon i {
    color: var(--ga-white);
    font-size: 1.1rem;
}

.ga-char-text p {
    margin: 0;
    line-height: 1.4;
}

.ga-char-text p:first-child {
    font-size: 0.8rem;
    color: var(--ga-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ga-char-text p:last-child {
    font-size: 1rem;
    color: var(--ga-navy);
    font-weight: 600;
}

/* ---------- Description ---------- */
.ga-description {
    background: var(--ga-white);
    border-radius: var(--ga-radius);
    padding: 35px;
    margin-bottom: 20px;
    box-shadow: var(--ga-shadow);
}

.ga-desc-text {
    color: var(--ga-text);
    line-height: 1.8;
    font-size: 0.95rem;
}

.ga-desc-text p {
    margin-bottom: 1em;
}

.ga-desc-text p:last-child {
    margin-bottom: 0;
}

.ga-desc-collapsed {
    max-height: 180px;
    overflow: hidden;
    position: relative;
}

.ga-desc-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--ga-white));
}

.ga-see-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    color: var(--ga-navy);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.3s;
}

.ga-see-more:hover {
    color: var(--ga-gold);
}

.ga-see-more i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.ga-see-more.expanded i {
    transform: rotate(180deg);
}

/* ---------- Details / Criteria ---------- */
.ga-details {
    background: var(--ga-white);
    border-radius: var(--ga-radius);
    padding: 35px;
    margin-bottom: 20px;
    box-shadow: var(--ga-shadow);
}

.ga-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 40px;
}

.ga-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--ga-border);
}

.ga-detail-row:last-child {
    border-bottom: none;
}

.ga-detail-label {
    font-size: 0.9rem;
    color: var(--ga-text-light);
}

.ga-detail-value {
    font-size: 0.9rem;
    color: var(--ga-navy);
    font-weight: 600;
}

/* Criteria categories */
.ga-criteria-cat {
    margin-bottom: 25px;
}

.ga-criteria-cat:last-child {
    margin-bottom: 0;
}

.ga-criteria-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ga-gold);
    font-weight: 600;
    margin-bottom: 12px;
}

.ga-criteria-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 30px;
}

.ga-criteria-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--ga-text);
    padding: 6px 0;
}

.ga-criteria-list li i {
    color: var(--ga-gold);
    font-size: 0.7rem;
}

/* ---------- Map ---------- */
.ga-map-section {
    background: var(--ga-white);
    border-radius: var(--ga-radius);
    padding: 35px;
    margin-bottom: 20px;
    box-shadow: var(--ga-shadow);
}

.ga-map-container {
    height: 400px;
    width: 100%;
    border-radius: var(--ga-radius-sm);
    overflow: hidden;
}

/* ---------- Share ---------- */
.ga-share-section {
    background: var(--ga-white);
    border-radius: var(--ga-radius);
    padding: 35px;
    margin-bottom: 20px;
    box-shadow: var(--ga-shadow);
}

.ga-share-btns {
    display: flex;
    gap: 12px;
}

.ga-share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ga-white);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.ga-share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.ga-share-fb { background: #3b5998; }
.ga-share-li { background: #0077b5; }
.ga-share-wa { background: #25d366; }
.ga-share-tw { background: #1da1f2; }
.ga-share-mail { background: var(--ga-navy); }

/* ---------- Sidebar ---------- */
.ga-sidebar {
    position: sticky;
    top: 160px;
    align-self: flex-start;
}

.ga-contact-card {
    background: var(--ga-white);
    border-radius: var(--ga-radius);
    padding: 35px;
    box-shadow: var(--ga-shadow);
    margin-bottom: 20px;
}

.ga-contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--ga-navy);
    margin-bottom: 25px;
}

.ga-contact-card .form-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ga-text-light);
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.ga-contact-card .form-control,
.ga-contact-card input,
.ga-contact-card textarea {
    background: var(--ga-cream);
    border: 1px solid var(--ga-border);
    padding: 12px 15px;
    font-size: 0.95rem;
    color: var(--ga-text);
    width: 100%;
    border-radius: var(--ga-radius-sm);
    transition: border-color 0.3s;
    margin-bottom: 16px;
}

.ga-contact-card .form-control:focus,
.ga-contact-card input:focus,
.ga-contact-card textarea:focus {
    border-color: var(--ga-gold);
    outline: none;
    box-shadow: none;
}

.ga-contact-card button[type="submit"] {
    background: var(--ga-navy);
    color: var(--ga-white);
    border: none;
    padding: 14px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
    border-radius: var(--ga-radius-sm);
}

.ga-contact-card button[type="submit"]:hover {
    background: var(--ga-gold);
}

.ga-contact-card .g-recaptcha {
    margin-bottom: 16px;
    transform: scale(0.92);
    transform-origin: 0 0;
}



/* Agency info in sidebar */
.ga-agency-card {
    background: var(--ga-white);
    border-radius: var(--ga-radius);
    padding: 30px;
    box-shadow: var(--ga-shadow);
    text-align: center;
}

.ga-agency-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
}

.ga-agency-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--ga-navy);
    margin-bottom: 8px;
}

.ga-agency-card p {
    font-size: 0.85rem;
    color: var(--ga-text-light);
    margin-bottom: 0;
}

/* ---------- Related Properties ---------- */
.ga-related {
    padding: 60px 0 0;
}

.ga-related .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.ga-related .section-header .label {
    color: var(--ga-gold);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.ga-related .section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--ga-navy);
    margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .ga-sidebar {
        position: static;
        margin-top: 30px;
    }

    .ga-price-block {
        align-items: flex-start;
        margin-top: 15px;
    }

    .ga-details-grid {
        grid-template-columns: 1fr;
    }

    .ga-criteria-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ga-info-section,
    .ga-main-chars,
    .ga-description,
    .ga-details,
    .ga-map-section,
    .ga-share-section,
    .ga-contact-card,
    .ga-agency-card {
        padding: 25px 20px;
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
        margin-bottom: 12px;
    }

    .ga-property-title {
        font-size: 1.5rem;
    }

    .ga-price-main {
        font-size: 1.8rem;
    }

    .ga-gallery-wrapper {
        margin-bottom: 0;
    }

    .ga-gallery-grid {
        border-radius: 0;
    }

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

    .ga-action-btns {
        flex-wrap: wrap;
    }

    .ga-btn-action {
        flex: 1;
        min-width: 120px;
    }

    .detail-greenacres {
        padding-bottom: 40px;
    }

    .ga-related {
        padding-top: 40px;
    }
}

/* ---------- Fancybox custom ---------- */
.fancybox__container {
    --fancybox-bg: rgba(26, 35, 50, 0.95);
}

.fancybox__nav .carousel__button {
    background: var(--ga-gold);
    color: var(--ga-white);
}

.fancybox__nav .carousel__button:hover {
    background: var(--ga-navy);
}
