/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.text-4xl {
    font-size: 2.5rem;
    line-height: 1.2;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1.2;
}

.text-2xl {
    font-size: 1.75rem;
    line-height: 1.2;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.4;
}

/* Navigation */
nav {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
}

nav a, nav button {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
}

/* Property Information Section */
.property-info h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

.property-info .text-4xl {
    font-size: 2.25rem;
    font-weight: 300;
}

/* Overview Section */
#overview h2 {
    font-size: 3rem;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

#overview p {
    font-size: 1.125rem;
    line-height: 1.75;
}

#overview .text-xl {
    font-size: 1.375rem;
    font-weight: 400;
}

/* Gallery Section */
#photo-gallery h2 {
    font-size: 2rem;
    letter-spacing: -0.02em;
}

/* Videos & Map Sections */
#videos h2, #map h2 {
    font-size: 2rem;
    letter-spacing: -0.02em;
}

/* Contact Button */
.contact-btn {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    #overview h2 {
        font-size: 2.5rem;
    }
    
    #overview p {
        font-size: 1rem;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    nav .container {
        padding: 1rem;
    }

    #mobileMenu {
        transition: opacity 0.3s ease;
    }

    #mobileMenu:not(.hidden) {
        display: flex !important;
        opacity: 1;
    }

    #mobileMenu.hidden {
        opacity: 0;
        pointer-events: none;
    }

    #mobileMenu a {
        position: relative;
        padding: 0.5rem 1rem;
    }

    #mobileMenu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: white;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    #mobileMenu a:hover::after {
        width: 100%;
    }
}

/* Gallery styles */
#photo-gallery img {
    transition: transform 0.3s ease;
}

#photo-gallery img:hover {
    transform: scale(1.02);
}

/* Gallery Modal styles */
#galleryModal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#galleryModal.visible {
    opacity: 1;
    visibility: visible;
}

#galleryModal:not(.hidden) {
    display: flex !important;
    flex-direction: column;
}

#galleryModal img#modalMainImage {
    max-height: calc(100vh - 160px);
    max-width: calc(100vw - 48px);
    object-fit: contain;
    margin: auto;
}

.modal-controls-top {
    padding: 1rem;
    z-index: 60;
}

#galleryModal .modal-content {
    height: calc(100vh - 120px);
}

#galleryModal button.absolute {
    padding: 1.5rem;
    margin: 0 1rem;
}

#thumbnailContainer {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

#thumbnailContainer::-webkit-scrollbar {
    display: none;
}

#thumbnailContainer img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

#thumbnailContainer img:hover {
    opacity: 0.8;
}

#thumbnailContainer img.active {
    border-color: white;
}

#prevImageBtn,
#nextImageBtn {
    transition: all 0.2s ease;
}

#prevImageBtn:hover,
#nextImageBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Mobile styles for gallery modal */
@media (max-width: 768px) {
    #galleryModal img#modalMainImage {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 140px);
    }
    
    #galleryModal button.absolute {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    #thumbnailContainer img {
        width: 90px;
        height: 60px;
    }

    #prevImageBtn,
    #nextImageBtn {
        padding: 0.5rem;
    }
}

/* Swiper styles */
.swiper {
    width: 100%;
    height: 100vh;
    background: #000;
}

.swiper-slide {
    width: 100%;
    height: 100vh;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
}

/* Fade effect */
.swiper-fade .swiper-slide {
    opacity: 0 !important;
    transition: opacity 0.5s ease;
}

.swiper-fade .swiper-slide-active {
    opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem !important;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: white;
    opacity: 1;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
}

/* Buttons */
button {
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

button:hover {
    opacity: 0.8;
}

/* Links */
a {
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav .flex {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    nav .space-x-6 {
        margin-top: 1rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    #photo-gallery .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery buttons mobile styles */
    #photo-gallery .flex.gap-4 {
        flex-direction: column;
        gap: 1rem;
    }

    #photo-gallery button,
    #photo-gallery a {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

#overview {
    position: relative;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

#overview p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #4B5563;
}

#overview .border-b {
    border-color: #E5E7EB;
}

#overview button {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

#overview button:hover {
    background-color: black;
    color: white;
}

#overview img {
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Loading indicator */
.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Swiper lazy loading */
.swiper-lazy-preloader {
    width: 42px;
    height: 42px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -21px;
    margin-top: -21px;
    z-index: 10;
    transform-origin: 50%;
    box-sizing: border-box;
    border: 4px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: swiper-preloader-spin 1s infinite linear;
}

@keyframes swiper-preloader-spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Optimize image loading */
.swiper-slide img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-slide img.swiper-lazy-loaded {
    opacity: 1;
}

/* Footer styles */
footer {
    background-color: #f9fafb;
}

footer img {
    max-width: 100%;
    height: auto;
}

footer .container {
    max-width: 1280px;
}

footer .grid-cols-3 > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    footer .grid-cols-3 > div {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0;
    }

    footer .grid {
        gap: 2rem;
    }

    footer h3 {
        text-align: center;
    }

    footer address {
        text-align: center;
    }

    footer .flex {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    footer .grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
} 