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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('NewImages/01_Front.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.price-tag {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    padding: 1.5rem 3rem;
    border-radius: 20px;
    margin: 2rem auto;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    font-family: 'Playfair Display', serif;
}

.price-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.cta-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    margin-top: 2rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 48px; /* Larger touch target for main CTA */
    box-sizing: border-box;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.feature-card p {
    color: #718096;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background: white;
}

.gallery-container {
    display: grid;
    gap: 2rem;
}

.main-photo {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    border: 3px solid transparent;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    opacity: 1;
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

/* Details Section */
.details-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
}

.details-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.lead-text {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    align-items: center;
}

.highlight-label {
    font-weight: 600;
    color: #2d3748;
}

.highlight-desc {
    color: #718096;
}

.specs-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.specs-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #2d3748;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.spec-label {
    font-weight: 500;
    color: #4a5568;
}

.spec-value {
    font-weight: 600;
    color: #2d3748;
}

/* Location Section */
.location-section {
    padding: 5rem 0;
    background: white;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.location-text h3,
.location-benefits h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.location-text p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.amenities-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.amenity-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.amenity-icon {
    font-size: 1.5rem;
    min-width: 2rem;
}

.amenity-item strong {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.amenity-item p {
    color: #718096;
    margin: 0;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefits-list li {
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 0;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.contact-content {
    text-align: center;
}

.contact-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.agent-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.agent-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.agent-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.agent-description {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 44px; /* Minimum touch target size */
    box-sizing: border-box;
}

.primary-btn {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.secondary-btn {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.urgency-message {
    background: rgba(255, 107, 107, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #ff6b6b;
}

/* Footer */
.footer {
    background: #2d3748;
    color: #a0aec0;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
    .container {
        padding: 0 25px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .specs-card {
        position: static;
        order: -1; /* Move specs above description on mobile */
    }
    
    .location-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-section {
        background-attachment: scroll; /* Better performance on mobile */
    }
}

/* Mobile landscape and tablet portrait */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-highlights {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .highlight-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .price-tag {
        padding: 1.2rem 2rem;
        margin: 1.5rem auto;
    }
    
    .price {
        font-size: 2.2rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .details-text h2 {
        font-size: 1.9rem;
    }
    
    .lead-text {
        font-size: 1.1rem;
    }
    
    .highlight-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
    
    .specs-card {
        padding: 2rem;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
    }
    
    .agent-card {
        padding: 2rem;
        text-align: left;
    }
    
    .agent-info h3 {
        font-size: 1.7rem;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 0.8rem;
    }
    
    .thumbnail {
        height: 80px;
    }
    
    .main-image {
        height: 350px;
    }
    
    .features-grid {
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .amenity-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .amenity-icon {
        align-self: center;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        height: 90vh; /* Slightly shorter on small screens */
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-highlights {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .highlight-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .price-tag {
        padding: 1rem 1.5rem;
    }
    
    .price {
        font-size: 1.8rem;
    }
    
    .price-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .details-text h2 {
        font-size: 1.6rem;
    }
    
    .lead-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .highlights-list {
        gap: 1rem;
    }
    
    .specs-card {
        padding: 1.5rem;
    }
    
    .specs-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .thumbnail {
        height: 70px;
    }
    
    .main-image {
        height: 280px;
    }
    
    .agent-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .agent-info h3 {
        font-size: 1.5rem;
    }
    
    .agent-title {
        font-size: 1rem;
    }
    
    .agent-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .contact-content h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .contact-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .urgency-message {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .location-text h3,
    .location-benefits h3 {
        font-size: 1.5rem;
    }
    
    .location-text p {
        font-size: 1rem;
    }
    
    .benefits-list li {
        font-size: 0.9rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .price {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .details-text h2 {
        font-size: 1.4rem;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .agent-card {
        padding: 1.2rem;
    }
    
    .primary-btn, .secondary-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Fullscreen Image Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 3rem;
    font-weight: 300;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    font-weight: 300;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 50px;
}

.next-btn {
    right: 50px;
}

.image-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

/* Mobile styles for fullscreen modal */
@media (max-width: 768px) {
    .close-btn {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .prev-btn {
        left: 20px;
    }
    
    .next-btn {
        right: 20px;
    }
    
    .image-counter {
        bottom: 20px;
        padding: 8px 16px;
        font-size: 1rem;
    }
    
    .fullscreen-image {
        max-width: 98%;
        max-height: 90%;
    }
}

/* Add cursor pointer to main image for better UX */
.main-image {
    cursor: pointer;
}

.main-image:hover {
    transform: scale(1.02);
}
