/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #222;
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #FF385C;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Video Crop Controls - Adjust these values to change video positioning */
/* --video-top: controls vertical position (negative values move up, positive down) */
/* --video-position-x: horizontal position (left, center, right, or percentage like 50%) */
/* --video-position-y: vertical position (top, center, bottom, or percentage like 30%) */
/* Example: To show middle-right portion: --video-position-x: right; --video-position-y: center; */

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center 80%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.48s ease-in-out;
}

#heroVideo1 {
    transform: translate(-50%, -65%);
}

#heroVideo2 {
    transform: translate(-50%, -50%);
}

.hero-video-active {
    opacity: 1;
    z-index: 1;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 3;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 4;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
}

/* Filters */
.filters {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #ebebeb;
}

.filter-group {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 150px;
}

.filter-select:hover {
    border-color: #222;
}

.filter-select:focus {
    outline: none;
    border-color: #FF385C;
}

/* Listings Grid */
.listings {
    padding: 40px 0;
    min-height: 60vh;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.section-subtitle {
    font-size: 16px;
    color: #717171;
    margin-bottom: 30px;
}

.incomplete-section {
    background-color: #fafafa;
    border-top: 1px solid #ebebeb;
}

.incomplete-section .property-card {
    border: 2px dashed #ddd;
    opacity: 0.9;
}

.incomplete-section .property-card:hover {
    border-color: #FF385C;
    opacity: 1;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

/* Property Card */
.property-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.property-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #222;
}

.property-info {
    padding: 20px;
}

.property-location {
    font-size: 14px;
    color: #717171;
    margin-bottom: 8px;
}

.property-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-details {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #717171;
    margin-bottom: 12px;
}

.property-price {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-top: 8px;
}

.property-price .price-amount {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.property-price .price-period {
    font-size: 14px;
    font-weight: 400;
    color: #717171;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 40px auto;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    padding: 40px;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #222;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close:hover {
    color: #FF385C;
}

/* Image Gallery */
.image-gallery {
    margin-bottom: 30px;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 15px;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #999;
    flex-direction: column;
    gap: 10px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    color: #222;
    font-weight: 300;
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}

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

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.gallery-thumbnail {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.gallery-thumbnail:hover {
    border-color: #FF385C;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: #FF385C;
    box-shadow: 0 0 0 2px rgba(255, 56, 92, 0.3);
}

.video-thumbnail {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.video-thumbnail:hover {
    border-color: #FF385C;
    transform: scale(1.05);
}

.video-thumbnail.active {
    border-color: #FF385C;
    box-shadow: 0 0 0 2px rgba(255, 56, 92, 0.3);
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.modal-location {
    font-size: 16px;
    color: #717171;
    margin-bottom: 20px;
}

.modal-price {
    font-size: 28px;
    font-weight: 600;
    color: #FF385C;
    margin-bottom: 30px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
}

.modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: #484848;
    margin-bottom: 20px;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    list-style: none;
}

.amenities-list li {
    padding: 10px;
    background: #f7f7f7;
    border-radius: 8px;
    font-size: 14px;
}

.availability {
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 14px;
    color: #2e7d32;
    font-weight: 500;
}

/* Contact Information */
.contact-info {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
}

.contact-item {
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    color: #222;
    display: inline-block;
    min-width: 100px;
}

.contact-link {
    color: #FF385C;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.whatsapp-button {
    background: #25D366;
    color: white;
}

.whatsapp-button:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.airbnb-button {
    background: #FF385C;
    color: white;
}

.airbnb-button:hover {
    background: #E61E4D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 56, 92, 0.3);
}

/* Contact Information Blur and Payment */
.contact-info-wrapper {
    position: relative;
}

.contact-info-blurred {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
    position: relative;
}

.contact-info-unlocked {
    position: relative;
}

.payment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
}

.payment-message {
    text-align: center;
    padding: 30px;
}

.payment-message h4 {
    font-size: 24px;
    color: #222;
    margin-bottom: 10px;
}

.payment-message p {
    font-size: 16px;
    color: #717171;
    margin-bottom: 20px;
}

.payment-button {
    display: inline-block;
    background: #FF385C;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.payment-button:hover {
    background: #e61e4d;
}

.contact-link-blurred,
.contact-button-blurred {
    color: #717171;
    cursor: not-allowed;
    pointer-events: none;
}

/* About Section */
.about {
    padding: 40px 0;
    background: #f7f7f7;
    margin-top: 0;
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.about.show {
    display: block !important;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #484848;
}

/* Featured Listings Section */
.featured-listings {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-bottom: 3px solid #667eea;
}

.featured-listings .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.featured-grid .property-card {
    border: 3px solid #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    position: relative;
    transform: scale(1.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-grid .property-card::before {
    content: "⭐ Featured";
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.featured-grid .property-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Footer */
.footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #717171;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #222;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .filter-group {
        display: block;
        margin-bottom: 20px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .modal-image {
        height: 250px;
    }
    
    .amenities-list {
        grid-template-columns: 1fr;
    }
    
    .gallery-main {
        height: 300px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-thumbnail {
        width: 80px;
        height: 60px;
    }
}

