/* Property Landing Pages Specific Styles */

/* Header for property pages */
.property-header {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

/* Ensure body has padding to account for fixed header */
body {
    padding-top: 100px !important;
}

.property-hero {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(160, 82, 45, 0.6));
    padding-top: 80px !important;
    margin-top: 0 !important;
}

/* Property Hero Overlay for better text readability */
.property-hero .hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.property-hero .hero-content {
    position: relative;
    z-index: 3;
}

/* Property Hero Price Styling */
.property-price-hero {
    margin: 2rem 0;
    text-align: center;
}

.property-price-hero .price-main {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.property-price-hero .price-usd {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2a5298;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.property-price-hero .price-mxn {
    font-size: 1.6rem;
    font-weight: 600;
    color: #6c757d;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.property-price-hero .investment-note {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Property badges */
.property-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px !important;
    justify-content: center;
}

.luxury-badge, .golf-badge, .resort-badge, .villa-badge, .marina-badge, .family-badge, .traditional-badge, .penthouse-badge, .island-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Specific badge colors */
.golf-badge {
    background: linear-gradient(135deg, #228B22, #32CD32);
    border-color: rgba(34, 139, 34, 0.3);
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3);
    color: white;
}

.resort-badge {
    background: linear-gradient(135deg, #4B0082, #8A2BE2);
    border-color: rgba(75, 0, 130, 0.3);
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3);
    color: white;
}

.marina-badge {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-color: rgba(30, 60, 114, 0.3);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    color: white;
}

.villa-badge {
    background: linear-gradient(135deg, #0066cc, #004499);
    border-color: rgba(0, 102, 204, 0.3);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    color: white;
}

.family-badge {
    background: linear-gradient(135deg, #228B22, #32CD32);
    border-color: rgba(34, 139, 34, 0.3);
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3);
    color: white;
}

.traditional-badge {
    background: linear-gradient(135deg, #DC143C, #B22222);
    border-color: rgba(220, 20, 60, 0.3);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    color: white;
}

.penthouse-badge {
    background: linear-gradient(135deg, #191970, #4169E1);
    border-color: rgba(25, 25, 112, 0.3);
    box-shadow: 0 4px 15px rgba(25, 25, 112, 0.3);
    color: white;
}

.island-badge {
    background: linear-gradient(135deg, #20B2AA, #008B8B);
    border-color: rgba(32, 178, 170, 0.3);
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.3);
    color: white;
}

.badge-icon {
    font-size: 1.5rem;
}

/* Property title styling */
.property-name {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 10px;
    margin-top: 0;
    line-height: 1.1;
}

/* Alternative hero title structure */
.hero-title {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 20px !important;
}

.hero-title .property-name {
    display: block;
    margin-bottom: 15px;
}

.hero-title .property-location {
    display: block;
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.property-location {
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Property highlights */
.property-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 18px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: bold;
    color: white !important;
}

.highlight-item span {
    color: white !important;
}

.highlight-icon {
    font-size: 1.3rem;
}

/* Price inquiry section */
.price-inquiry {
    background: rgba(255, 215, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
    margin-top: 30px;
}

.price-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 10px;
}

.investment-note {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Property Details Section */
.property-details {
    background: #f8f9fa;
    padding: 80px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.property-overview {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.overview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #8B4513;
}

.overview-label {
    font-weight: bold;
    color: #666;
}

.overview-value {
    font-weight: bold;
    color: #333;
}

.luxury-features {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.features-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.features-column h4 {
    color: #8B4513;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.features-column ul {
    list-style: none;
    padding: 0;
}

.features-column li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.features-column li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.features-column li:last-child {
    border-bottom: none;
}

/* Sidebar */
.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-agent {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.agent-photo {
    margin-bottom: 20px;
}

.agent-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #8B4513;
}

.agent-info h4 {
    color: #8B4513;
    margin-bottom: 10px;
}

.agent-info p {
    color: #666;
    margin-bottom: 5px;
}

.agent-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.property-facts {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.fact-item:last-child {
    border-bottom: none;
}

.fact-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.fact-content {
    flex: 1;
}

.fact-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

.fact-value {
    display: block;
    font-weight: bold;
    color: #333;
}

.similar-properties {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.similar-property {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.similar-property:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.similar-property img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.similar-info h5 {
    color: #8B4513;
    margin-bottom: 5px;
}

.similar-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Virtual Tour Section */
.virtual-tour {
    background: white;
    padding: 80px 0;
}

.tour-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-actions {
    text-align: center;
    margin-top: 30px;
}

.tour-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tour-option {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tour-icon {
    font-size: 3rem;
    color: #8B4513;
    flex-shrink: 0;
}

.tour-content h4 {
    color: #8B4513;
    margin-bottom: 15px;
}

.tour-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Location Section */
.location {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 80px 0;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.amenity-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.amenity-info {
    flex: 1;
}

.amenity-name {
    display: block;
    font-weight: bold;
    color: #333;
}

.amenity-distance {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

.map-placeholder {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Investment Section */
.investment {
    background: white;
    padding: 80px 0;
}

.investment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.investment-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.investment-icon {
    font-size: 2.5rem;
    color: #8B4513;
    flex-shrink: 0;
}

.investment-text h4 {
    color: #8B4513;
    margin-bottom: 15px;
}

.financing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.financing-option {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #8B4513;
}

.financing-option h4 {
    color: #8B4513;
    margin-bottom: 20px;
}

.financing-option ul {
    list-style: none;
    padding: 0;
}

.financing-option li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.financing-option li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.financing-option li:last-child {
    border-bottom: none;
}

/* Contact Section */
.property-contact {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 80px 0;
}

.contact-methods.property-focused {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.contact-methods.property-focused .contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-methods.property-focused .contact-item.primary {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

.urgency-note.property-urgency {
    background: rgba(255, 215, 0, 0.2);
    border-left: 4px solid #FFD700;
    padding: 25px;
    border-radius: 15px;
    margin-top: 40px;
}

/* Footer */
.property-footer {
    background: #654321;
    color: white;
}

.footer-specialization {
    color: #FFD700;
}

/* Footer Logo Sizing */
.property-footer .footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFD700;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand h3 {
    margin: 15px 0 10px 0;
    color: #FFD700;
}

.footer-contact p {
    margin: 5px 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .property-footer .footer-logo {
        width: 60px;
        height: 60px;
    }
    
    .footer-brand h3 {
        font-size: 1.2rem;
    }
    
    .footer-contact p {
        font-size: 0.8rem;
    }
}

/* Language Toggle for Property Pages */
.property-lang-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.property-lang-toggle .lang-btn {
    background: transparent;
    color: #8B4513;
    border: 2px solid #8B4513;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.property-lang-toggle .lang-btn.active {
    background: #8B4513;
    color: white;
}

/* Utility Classes */
.full-width {
    width: 100%;
    justify-content: center;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tour-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .features-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .financing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .investment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .property-name {
        font-size: 2.5rem;
    }
    
    .property-location {
        font-size: 1.2rem;
    }
    
    .property-highlights {
        flex-direction: column;
        align-items: center;
    }
    
    .property-badge {
        margin-bottom: 20px;
    }
    
    .luxury-badge {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .badge-icon {
        font-size: 1.2rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .property-lang-toggle {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin: 20px auto;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .tour-option {
        flex-direction: column;
        text-align: center;
    }
    
    .investment-item {
        flex-direction: column;
        text-align: center;
    }
    
    .amenity-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Lead Popup Styles for Property Pages - Same as landing pages */
.lead-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lead-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.lead-popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.lead-popup-overlay.show .lead-popup-container {
    transform: translate(-50%, -50%) scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}

.popup-content {
    padding: 50px 40px 40px;
    text-align: center;
}

.popup-content h2 {
    font-size: 28px;
    color: #1e3c72;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.popup-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form input {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.popup-form input:focus {
    outline: none;
    border-color: #1e3c72;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.popup-form .btn {
    margin-top: 10px;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 60, 114, 0.3);
}

#property-popup-form-status {
    margin-top: 15px;
    font-size: 14px;
}

#property-popup-form-status p {
    margin: 0;
    padding: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
}

/* Mobile Responsive for Property Popup */
@media (max-width: 768px) {
    .lead-popup-container {
        width: 95%;
        max-width: 400px;
    }
    
    .popup-content {
        padding: 40px 25px 30px;
    }
    
    .popup-content h2 {
        font-size: 24px;
    }
    
    .popup-content p {
        font-size: 14px;
    }
    
    .popup-form input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .popup-form .btn {
        padding: 12px 25px;
        font-size: 16px;
    }
}