/**
 * Property Archive and Single Page Styles
 */

/* Archive Header Banner */
.archive-header-banner {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    overflow: hidden;
}

@media (max-width: 768px) {
    .archive-header-banner {
        padding: 80px 0 50px;
    }
}

.archive-banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(235, 55, 41, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(126, 20, 22, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.archive-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 52, 96, 0.7) 100%);
    z-index: 1;
}

.archive-banner-content {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 1200px) {
    .archive-banner-content {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .archive-banner-content {
        padding: 0 20px;
    }
}

.archive-banner-container {
    text-align: center;
}

.archive-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.archive-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-breadcrumb a:hover {
    color: #eb3729;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
    color: #eb3729;
    font-weight: 600;
}

.archive-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.archive-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 300;
}

.archive-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.property-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
}

.property-count svg {
    color: #eb3729;
}

/* Property Archive Content */
.property-archive-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.property-archive-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 768px) {
    .property-archive-content {
        padding: 40px 0;
    }
    
    .property-archive-container {
        gap: 20px;
    }
}

.property-archive-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 1200px) {
    .property-archive-container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .property-archive-container {
        padding: 0 20px;
    }
}

.property-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Property Card */
.property-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(235, 55, 41, 0.15);
    border-color: #eb3729;
}

.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #e0e0e0;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-card-image img {
    transform: scale(1.1);
}

.property-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.property-card:hover .property-card-overlay {
    opacity: 1;
}

.property-card-badge {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-status,
.badge-type {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-status {
    background: #eb3729;
    color: #ffffff;
}

.badge-status.badge-rent {
    background: #7e1416;
}

.badge-type {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
}

.property-card-hover {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 600;
}

.property-card-content {
    padding: 25px;
}

.property-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.3;
}

.property-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.property-card-location svg {
    color: #eb3729;
    flex-shrink: 0;
}

.property-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
}

.meta-item svg {
    color: #eb3729;
    flex-shrink: 0;
}

.property-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.price-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #eb3729;
}

/* Pagination */
.property-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.property-pagination .page-numbers {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.property-pagination .page-numbers li {
    margin: 0;
}

.property-pagination .page-numbers a,
.property-pagination .page-numbers span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a2e;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    font-weight: 600;
}

.property-pagination .page-numbers a:hover {
    background: #eb3729;
    color: #ffffff;
    border-color: #eb3729;
}

.property-pagination .page-numbers .current {
    background: #eb3729;
    color: #ffffff;
    border-color: #eb3729;
}

/* No Properties Found */
.no-properties-found {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-properties-found svg {
    color: #eb3729;
    margin-bottom: 20px;
}

.no-properties-found h3 {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.no-properties-found p {
    color: #666;
    margin-bottom: 30px;
}

.button-primary {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #eb3729 0%, #7e1416 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 55, 41, 0.4);
}

/* Single Property Page */
.single-property {
    background: #f8f9fa;
}

/* Property Banner */
.property-banner {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
}

.property-banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.property-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.85) 0%, rgba(15, 52, 96, 0.75) 100%);
    z-index: 1;
}

.property-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 100px 0 60px;
}

@media (max-width: 768px) {
    .property-banner-content {
        padding: 80px 0 50px;
    }
}

.property-banner-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 1200px) {
    .property-banner-container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .property-banner-container {
        padding: 0 20px;
    }
}

.property-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.property-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-breadcrumb a:hover {
    color: #eb3729;
}

.property-banner-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.property-banner-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.banner-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-badge.badge-sale {
    background: rgba(235, 55, 41, 0.3);
    border-color: #eb3729;
}

.banner-badge.badge-rent {
    background: rgba(126, 20, 22, 0.3);
    border-color: #7e1416;
}

.property-banner-excerpt {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    line-height: 1.6;
}

/* Single Property Content */
.single-property-content {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .single-property-content {
        padding: 40px 0;
    }
}

.single-property-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

@media (max-width: 1200px) {
    .single-property-container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .single-property-container {
        padding: 0 20px;
    }
}

.property-main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Property Gallery */
.property-gallery-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.property-gallery {
    width: 100%;
}

.gallery-main {
    margin-bottom: 20px;
}

.gallery-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #e0e0e0;
    margin-bottom: 20px;
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-fullscreen:hover {
    background: rgba(235, 55, 41, 0.8);
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    max-width: 100%;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumb:hover {
    border-color: #eb3729;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(235, 55, 41, 0.3);
}

.gallery-thumb.active {
    border-color: #eb3729;
    box-shadow: 0 0 0 2px rgba(235, 55, 41, 0.3), 0 4px 12px rgba(235, 55, 41, 0.2);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: #eb3729;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #eb3729;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-image-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Property Details */
.property-details-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.property-header-info {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.property-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.2;
}

.property-price-large {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.property-price-large .price-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.property-price-large .price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #eb3729;
}

.property-location-info {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.property-location-info svg {
    color: #eb3729;
    flex-shrink: 0;
    margin-top: 4px;
}

.property-address {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.property-location {
    color: #666;
    font-size: 0.95rem;
}

.property-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.property-excerpt {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-left: 4px solid #eb3729;
    border-radius: 8px;
    font-style: italic;
}

.property-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.property-description p {
    margin-bottom: 20px;
}

.property-description h2,
.property-description h3,
.property-description h4 {
    color: #1a1a2e;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Property Sidebar */
.property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.property-contact-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: sticky;
    top: 100px;
}

.property-contact-card h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.property-contact-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #ffffff;
    color: #eb3729;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #eb3729;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
}

.button-secondary:hover {
    background: #eb3729;
    color: #ffffff;
}

.button-secondary svg {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .single-property-container {
        grid-template-columns: 1fr;
    }
    
    .property-sidebar {
        order: -1;
    }
    
    .property-contact-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .property-archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .property-card-image {
        height: 200px;
    }
    
    .archive-header-banner,
    .property-banner-content {
        padding: 80px 20px 50px;
    }
    
    .property-gallery-section,
    .property-details-section {
        padding: 25px;
    }
    
    .property-title {
        font-size: 2rem;
    }
    
    .property-price-large .price-value {
        font-size: 2rem;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 480px) {
    .property-card-content {
        padding: 20px;
    }
    
    .property-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

