/* assets/property.css - Property listing page styles */

:root {
    --primary: #0a4b5c;
    --primary-dark: #06323f;
    --secondary: #e7b42c;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 12px;
}

/* Property Hero Section - No background image, just solid dark gradient */
.property-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    position: relative;
}

.property-hero:before {
    display: none;
}

.property-hero .container {
    position: relative;
    z-index: 2;
    padding: 50px 20px;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 auto;
}

.property-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: white;
    text-shadow: none;
    letter-spacing: -0.02em;
    background: transparent;
}

.property-hero-location {
    font-size: 1.1rem;
    margin-bottom: 12px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
}

.property-hero-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary);
    background: transparent;
}

/* Price badges for crypto currencies */
.price-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    background: transparent;
}

.price-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.price-badge i {
    margin-right: 8px;
    color: var(--secondary);
}

/* Property Container */
.property-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Gallery Styles */
.property-gallery {
    margin-bottom: 40px;
}

.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-slideshow {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    flex: 0 0 100%;
}

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

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    transition: background 0.3s;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0,0,0,0.8);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.thumbnail.active {
    opacity: 1;
    border: 2px solid var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Two Column Layout */
.property-two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

/* Property Main Content */
.property-section {
    margin-bottom: 40px;
}

.property-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.description-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    line-height: 1.8;
    box-shadow: var(--shadow-sm);
}

.description-content p {
    margin-bottom: 1.2em;
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.feature-item span {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Sidebar Cards */
.owner-card,
.contact-card,
.property-meta-card,
.parties-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.owner-card h3,
.contact-card h3,
.parties-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.owner-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.owner-avatar i {
    font-size: 30px;
    color: white;
}

.owner-name {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.owner-badge {
    text-align: center;
    font-size: 0.9rem;
    color: #28a745;
}

/* Contact Buttons - Improved visibility */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 1rem;
}

.btn-email {
    background: var(--primary);
    color: white !important;
    border: none;
}

.btn-email:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white !important;
}

.btn-whatsapp {
    background: #25D366;
    color: white !important;
    border: none;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white !important;
}

.btn-email i,
.btn-whatsapp i {
    font-size: 1.1rem;
}

/* Property Meta Card */
.property-meta-card {
    text-align: center;
}

.meta-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.direct-badge {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    color: var(--primary);
    font-size: 0.85rem;
}

/* Parties Card for lawyer, notary, etc. */
.parties-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.party-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: transform 0.2s;
}

.party-item:hover {
    transform: translateX(5px);
}

.party-icon {
    width: 40px;
    height: 40px;
    background: rgba(10, 75, 92, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.party-icon i {
    font-size: 1.2rem;
    color: var(--primary);
}

.party-info {
    flex: 1;
}

.party-role {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.party-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-top: 2px;
}

.party-details {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* Similar Properties */
.similar-properties {
    margin-top: 60px;
}

.similar-properties h2 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.similar-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: block;
}

.similar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.similar-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.similar-info {
    padding: 20px;
}

.similar-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.similar-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.similar-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .property-two-columns {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .property-hero {
        min-height: 220px;
    }
    
    .property-hero h1 {
        font-size: 1.5rem;
    }
    
    .property-hero-price {
        font-size: 1.3rem;
    }
    
    .property-hero-location {
        font-size: 0.9rem;
    }
    
    .price-badges {
        gap: 10px;
    }
    
    .price-badge {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .property-container {
        padding: 20px 15px;
    }
    
    .property-two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-slide img {
        height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .property-section h2,
    .similar-properties h2 {
        font-size: 1.4rem;
    }
    
    .description-content {
        padding: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery-slide img {
        height: 250px;
    }
    
    .gallery-nav {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .property-hero .container {
        padding: 30px 15px;
    }
}