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

/* Property Detail Page - Navbar Override - Ultra Smooth */
body.property-detail-page .navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.property-detail-page .navbar .logo {
    color: var(--color-black);
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.property-detail-page .navbar .nav-menu a {
    color: var(--color-black);
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.property-detail-page .navbar .menu-line {
    background: var(--color-black);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When scrolled, navbar becomes white - Ultra Smooth */
body.property-detail-page .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 16px 50px;
}

body.property-detail-page .navbar.scrolled .logo {
    color: var(--color-black);
    font-size: 22px;
}

body.property-detail-page .navbar.scrolled .nav-menu a {
    color: var(--color-black);
}

body.property-detail-page .navbar.scrolled .menu-line {
    background: var(--color-black);
}

/* Property Detail Header */
.property-detail-header {
    padding: 110px 0 35px;
    background: #ffffff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: 32px;
    transition: var(--transition-smooth);
}

.back-link:hover {
    color: var(--color-primary);
}

.back-link svg {
    transition: var(--transition-smooth);
}

.back-link:hover svg {
    transform: translateX(-4px);
}

.property-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 400;
    color: var(--color-black);
    margin: 0 0 12px 0;
    text-align: center;
    letter-spacing: -0.5px;
}

.property-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    text-align: center;
}

/* Property Gallery */
.property-gallery {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 60px;
    padding: 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    width: 100%;
    height: 650px;
}

/* Main Large Image (Left Side) */
.gallery-main-large {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 9;
}

/* Right Side Grid (2x2) */
.gallery-grid-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
}

.gallery-grid-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 9;
}

/* Full Gallery Button (Bottom Right Image) */
.gallery-grid-item-last {
    position: relative;
}

.gallery-fullscreen-btn {
    position: absolute;
    top: auto;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 25;
}

.gallery-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Gallery Modal (Lightbox) */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* Modal Close Button */
.gallery-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10001;
}

.gallery-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Navigation Arrows */
.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.3s ease;
    z-index: 10001;
}

.gallery-modal-prev {
    left: 24px;
}

.gallery-modal-next {
    right: 24px;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

/* Image Counter */
.gallery-modal-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
}

/* Property Info Section */
.property-info-section {
    padding: 50px 0 70px;
    background: #ffffff;
}

/* Agent & Price Header */
.property-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.agent-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.agent-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-text {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    line-height: 1.4;
}

.agent-title {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
}

.price-info-card {
    text-align: right;
}

.price-label {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-text-light);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-price {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

/* General Information Section */
.general-info-section {
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 28px 0;
    letter-spacing: -0.01em;
}

/* Main Stats */
.main-stats {
    display: flex;
    gap: 100px;
    margin-bottom: 28px;
    flex-wrap: nowrap;
}

.stat-box {
    display: flex;
    flex-direction: column;
    min-width: fit-content;
    flex-shrink: 0;
}

.stat-number {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 52px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: block;
    width: auto;
    overflow: visible;
}

.stat-number span {
    display: inline-block;
    white-space: nowrap;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    letter-spacing: inherit;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    margin: 0;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Description */
.property-description {
    margin-top: 28px;
}

.property-description p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: #333333;
    margin: 0;
    max-width: 100%;
}

/* Details Grid (Interior/Exterior, Area/Financial) */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    margin-bottom: 50px;
}

.details-column {
    display: flex;
    flex-direction: column;
}

.detail-list {
    display: flex;
    flex-direction: column;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #eeeeee;
}

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

.detail-label {
    font-family: var(--font-body);
    font-size: 11px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    flex: 0 0 38%;
}

.detail-value {
    font-family: var(--font-body);
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    text-align: right;
    flex: 0 0 58%;
    line-height: 1.5;
}

/* Bottom Gallery */
.bottom-gallery {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bottom-gallery-row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bottom-gallery-row-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

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

.bottom-gallery-row-bottom img {
    height: 240px;
}

/* Property Contact Section */
.property-contact-section {
    padding: 80px 0;
    background: #f8f8f8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
}

/* Left Column - Contact Info */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    color: #ffffff;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.contact-subheading {
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 50px 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    color: #ffffff;
}

.contact-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.contact-value {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--color-primary);
}

/* Right Column - Contact Form */
.contact-form-column {
    display: flex;
    flex-direction: column;
}

.form-heading {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 28px 0;
    letter-spacing: -0.01em;
}

.property-contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 12px 16px;
    border: 1px solid #d5d5d5;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.form-consent input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.form-consent label {
    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1.6;
    color: #666666;
    cursor: pointer;
}

.btn-send-message {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #1a1a1a;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-send-message:hover {
    background: var(--color-primary);
    transform: translateX(4px);
}

.btn-send-message svg {
    transition: transform 0.3s ease;
}

.btn-send-message:hover svg {
    transform: translateX(4px);
}

/* Property Map Section */
.property-map-section {
    padding: 80px 0;
    background: #f8f8f8;
}

.map-wrapper {
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.map-container {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(0%);
}

/* Final CTA Section */
.property-final-cta {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.property-final-cta .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.cta-content {
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
}

.cta-subtitle {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 12px 0;
    opacity: 0.95;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 28px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.btn-schedule {
    display: inline-block;
    padding: 16px 48px;
    background: #ffffff;
    color: #1a1a1a;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.btn-schedule:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .details-grid {
        gap: 60px;
    }

    .gallery-container {
        height: 550px;
    }

    .main-stats {
        gap: 70px;
    }
}

@media (max-width: 768px) {
    .property-title {
        font-size: 36px;
    }

    .property-subtitle {
        font-size: 14px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 8px;
    }

    .gallery-main-large {
        height: 400px;
    }

    .gallery-grid-right {
        height: 200px;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
    }

    .gallery-fullscreen-btn {
        padding: 8px 16px;
        font-size: 12px;
        bottom: 12px;
        right: 12px;
    }

    .gallery-modal-prev {
        left: 12px;
    }

    .gallery-modal-next {
        right: 12px;
    }

    .gallery-modal-close {
        top: 12px;
        right: 12px;
    }

    .property-header-info {
        flex-direction: column;
        gap: 24px;
    }

    .price-info-card {
        text-align: left;
    }

    .main-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 36px;
    }

    .property-price {
        font-size: 28px;
    }

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

    .bottom-gallery-row-top {
        grid-template-columns: 1fr;
    }

    .bottom-gallery-row-bottom {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .property-map-section {
        padding: 60px 0;
    }

    .map-container {
        height: 400px;
    }

    .property-final-cta {
        height: 500px;
        background-attachment: scroll;
    }

    .cta-title {
        font-size: 42px;
    }
}

@media (max-width: 480px) {
    .property-detail-header {
        padding: 100px 0 30px;
    }

    .property-title {
        font-size: 28px;
    }

    .gallery-main-large {
        height: 300px;
    }

    .gallery-grid-right {
        height: 150px;
    }

    .gallery-fullscreen-btn {
        padding: 6px 12px;
        font-size: 11px;
        gap: 4px;
        top: auto;
        bottom: 10px;
        right: 10px;
    }

    .gallery-fullscreen-btn svg {
        width: 16px;
        height: 16px;
    }

    .main-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-number {
        font-size: 32px;
    }

    .bottom-gallery img {
        height: 200px;
    }

    .bottom-gallery-row-bottom img {
        height: 180px;
    }

    .property-contact-section {
        padding: 60px 0;
    }

    .contact-heading {
        font-size: 24px;
    }

    .contact-grid {
        gap: 40px;
    }

    .property-map-section {
        padding: 50px 0;
    }

    .map-container {
        height: 350px;
    }

    .property-final-cta {
        height: 450px;
    }

    .cta-title {
        font-size: 36px;
    }

    .btn-schedule {
        padding: 14px 36px;
        font-size: 14px;
    }
}

/* ========================================
   REDESIGNED GENERAL INFORMATION SECTION
   ======================================== */

.awara-general-info {
    margin-bottom: 50px !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
}

.awara-info-title {
    font-family: var(--font-heading) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 32px 0 !important;
    letter-spacing: -0.01em !important;
}

.awara-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, auto) !important;
    gap: 80px !important;
    margin-bottom: 32px !important;
    justify-content: start !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
}

.awara-stat-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-width: fit-content !important;
    width: auto !important;
    overflow: visible !important;
}

.awara-stat-value {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 48px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    white-space: nowrap !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.awara-stat-name {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #666666 !important;
    letter-spacing: 0.01em !important;
    text-transform: capitalize !important;
    white-space: nowrap !important;
}

.awara-property-desc {
    margin-top: 28px !important;
}

.awara-property-desc p {
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #333333 !important;
    margin: 0 !important;
}

/* Responsive Design for Redesigned Section */
@media (max-width: 1024px) {
    .awara-stats-grid {
        gap: 60px !important;
    }

    .awara-stat-value {
        font-size: 42px !important;
    }
}

@media (max-width: 768px) {
    .awara-stats-grid {
        gap: 40px !important;
    }

    .awara-stat-value {
        font-size: 36px !important;
    }

    .awara-stat-name {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .awara-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .awara-stat-value {
        font-size: 32px !important;
    }
}
