:root {
    --primary-dark: #2c3e50;
    --primary-light: #f7f9fb;
    --accent-blue: #4a7c9e;
    --accent-sand: #d4b896;
    --accent-navy: #1e3a52;
    --accent-mist: #a8c5d6;
    --text-primary: #2d3e4f;
    --text-secondary: #6b7c8d;
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-light);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Fixed Side Panel */
.side-panel {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem;
    z-index: 999;
    opacity: 0;
    animation: slideInRight 0.8s ease-out 1.5s forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.side-panel-header {
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.side-panel-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.2;
}

.side-panel-title a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent-blue);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.side-panel-title a svg {
    stroke: var(--accent-blue);
    transition: var(--transition-fast);
}

.side-panel-title a:hover {
    color: var(--accent-mist);
    text-shadow: 0 0 8px rgba(168, 197, 214, 0.4);
}

.side-panel-title a:hover svg {
    stroke: var(--accent-mist);
    filter: drop-shadow(0 0 4px rgba(168, 197, 214, 0.5));
}

.side-panel-subtitle {
    font-size: 0.75rem;
    color: var(--accent-blue);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.side-panel-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.side-panel-facts {
    list-style: none;
    margin-bottom: 2rem;
}

.side-panel-fact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.side-panel-fact:last-child {
    border-bottom: none;
}

.fact-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fact-value {
    font-size: 1rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.fact-value a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

.fact-value a:hover {
    color: var(--accent-sand);
}

.side-panel-cta {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: var(--primary-dark);
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    border: 2px solid var(--primary-dark);
    transition: var(--transition-fast);
    margin-bottom: 0.75rem;
}

.side-panel-cta:hover {
    background-color: transparent;
    color: var(--primary-dark);
}

.side-panel-cta.secondary {
    background-color: transparent;
    color: var(--primary-dark);
    border-color: var(--accent-sand);
}

.side-panel-cta.secondary:hover {
    background-color: var(--accent-sand);
    color: white;
    border-color: var(--accent-sand);
}

.side-panel-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.side-panel-contact strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 0.25rem;
}

.side-panel-contact a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

.side-panel-contact a:hover {
    color: var(--accent-sand);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 340px;
    z-index: 1000;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(248, 246, 243, 0.95), transparent);
    backdrop-filter: blur(10px);
    animation: slideDown 0.8s ease-out;
}

@media (max-width: 1200px) {
    nav {
        right: 0;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-blue);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f7f9fb 0%, #e8f1f7 100%);
    margin-right: 340px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25% 35%, rgba(74, 124, 158, 0.10) 0%, transparent 45%),
                      radial-gradient(circle at 75% 65%, rgba(168, 197, 214, 0.08) 0%, transparent 45%),
                      radial-gradient(circle at 45% 75%, rgba(74, 124, 158, 0.07) 0%, transparent 35%);
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 1200px) {
    .hero {
        margin-right: 0;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.3s forwards;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 124, 158, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(168, 197, 214, 0.1) 0%, transparent 50%);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 2rem;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    text-transform: none;
    margin-top: -10px;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    opacity: 0;
    animation: fadeInUpSubtitle 0.8s ease-out 0.9s forwards;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-blue), transparent);
    opacity: 0.5;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpSubtitle {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1.1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    position: relative;
    padding-top: 3rem;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-blue), transparent);
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.7s forwards;
}

.hero-location {
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.hero-title::after {
    content: '◆';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-blue);
    font-size: 1rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.7s forwards;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 533px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.1s forwards;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--primary-dark);
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 2px solid var(--primary-dark);
    transition: var(--transition-fast);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.1s forwards;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-blue);
    transition: var(--transition-smooth);
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: white;
    border-color: var(--accent-blue);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards, bounce 2s ease-in-out 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    stroke: var(--text-secondary);
}

/* Featured Properties Section */
.featured-section {
    padding: 8rem 5%;
    background-color: var(--primary-light);
    margin-right: 340px;
    position: relative;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 30% 40%, rgba(74, 124, 158, 0.10) 0%, transparent 45%),
                      radial-gradient(circle at 70% 60%, rgba(168, 197, 214, 0.08) 0%, transparent 45%);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.featured-section > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .featured-section {
        margin-right: 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.1875em;
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-subtitle .aside {
    font-size: 0.7rem;
    opacity: 0.75;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-top: 0;
    color: var(--primary-dark);
}

.section-description {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.05em;
    line-height: 1.6;
    color: #d4b896;
    max-width: 700px;
    margin: 2rem auto 0;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Overview Section Styles */
.overview-content {
    max-width: 1400px;
    margin: 0 auto;
}

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

.price-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--accent-blue);
}

.property-price-large {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.property-location-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.property-description {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.property-description-italic {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 2rem;
    margin-bottom: 0;
    padding-top: 2rem;
    position: relative;
}

.property-description-italic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-blue), transparent);
    opacity: 0.5;
}

.overview-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-box {
    background: white;
    padding: 42px 28px;
    text-align: center;
    border: 1px solid rgba(47, 59, 70, 0.12);
    transition: var(--transition-fast);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 124, 158, 0.15);
    border-color: var(--accent-blue);
}

.feature-icon-large {
    width: 54px;
    height: 54px;
    color: #6f7f8f;
    opacity: 0.9;
    margin: 0 auto 24px;
    display: block;
    stroke: currentColor;
    stroke-width: 2.4;
}

.feature-icon-large svg {
    stroke: var(--accent-blue);
}

.feature-icon-large i {
    font-size: 32px;
    color: var(--accent-blue);
}

.feature-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    line-height: 1;
    font-weight: 400;
    color: #2f3b46;
    margin-bottom: 12px;
}

.feature-label {
    font-size: 14px;
    color: #7b8a97;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Gallery Section Styles */
.gallery-section {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, var(--primary-light), #e3eef5);
    margin-right: 340px;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 35% 30%, rgba(74, 124, 158, 0.10) 0%, transparent 45%),
                      radial-gradient(circle at 65% 70%, rgba(168, 197, 214, 0.08) 0%, transparent 45%);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.gallery-section > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .gallery-section {
        margin-right: 0;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-label {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Location Section Styles */
.location-content {
    max-width: 1200px;
    margin: 0 auto;
}

.location-description {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.nearby-amenities {
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.amenities-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

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

.amenity-item {
    padding: 1.5rem;
    background: var(--primary-light);
    border-left: 3px solid var(--accent-blue);
    line-height: 1.8;
}

.amenity-item strong {
    color: var(--accent-blue);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.property-card {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(50px);
}

.property-card.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.property-card:nth-child(2).visible {
    animation-delay: 0.15s;
}

.property-card:nth-child(3).visible {
    animation-delay: 0.3s;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.property-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.property-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--accent-sand);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

.property-info {
    padding: 2rem;
}

.property-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.property-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.property-location {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-features {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Services Section */
.services-section {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, var(--accent-navy), #2c4a5e);
    color: var(--primary-light);
    margin-right: 340px;
    position: relative;
}

.services-section .section-title {
    color: var(--primary-light);
}

.services-section .section-subtitle {
    color: rgba(248, 246, 243, 0.8);
}

.services-section > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .services-section {
        margin-right: 0;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.service-card:nth-child(2).visible {
    animation-delay: 0.2s;
}

.service-card:nth-child(3).visible {
    animation-delay: 0.4s;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--accent-sand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--accent-mist);
}

.service-icon svg {
    width: 48px;
    height: 48px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.service-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.service-description {
    color: rgba(248, 246, 243, 0.8);
    line-height: 1.8;
}

/* Statistics Section */
.stats-section {
    padding: 8rem 5%;
    background-color: var(--primary-light);
    margin-right: 340px;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 40% 35%, rgba(74, 124, 158, 0.10) 0%, transparent 45%),
                      radial-gradient(circle at 60% 65%, rgba(168, 197, 214, 0.08) 0%, transparent 45%);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.stats-section > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .stats-section {
        margin-right: 0;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    opacity: 0;
    transform: translateY(30px);
}

.stat-item.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Newsletter Section */
.newsletter-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--accent-mist), var(--accent-blue));
    color: white;
    text-align: center;
    margin-right: 340px;
}

@media (max-width: 1200px) {
    .newsletter-section {
        margin-right: 0;
    }
}

/* Making an Offer Section */
.making-offer-section {
    padding: 5.5rem 5%;
    background: #F1F4F7;
    text-align: center;
    margin-right: 340px;
}

@media (max-width: 1200px) {
    .making-offer-section {
        margin-right: 0;
    }
}

.making-offer-content {
    max-width: 700px;
    margin: 0 auto;
}

.making-offer-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: #3A4652;
    margin-bottom: 1.8rem;
    padding-bottom: 2rem;
    position: relative;
}

.making-offer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: rgba(0, 0, 0, 0.045);
}

.making-offer-text {
    font-size: 0.9975rem;
    line-height: 1.6;
    color: #5E6A75;
}

.making-offer-text p {
    margin-bottom: 1.25rem;
}

.making-offer-text p:last-child {
    margin-bottom: 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.newsletter-description {
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-button {
    padding: 1rem 2.5rem;
    background: white;
    color: var(--accent-blue);
    border: 2px solid white;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.newsletter-button:hover {
    background: var(--accent-sand);
    color: white;
    border-color: var(--accent-sand);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--primary-light);
    padding: 4rem 5% 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
    color: rgba(248, 246, 243, 0.7);
    text-decoration: none;
    line-height: 2;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent-blue);
}

.footer-links {
    list-style: none;
}

.footer-bottom {
    border-top: 1px solid rgba(248, 246, 243, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(248, 246, 243, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .side-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1.5rem 5%;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .overview-features {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .services-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-dark);
    transition: var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 124, 158, 0.4);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(30, 58, 82, 0.97) 0%, 
        rgba(44, 62, 80, 0.97) 50%, 
        rgba(30, 58, 82, 0.97) 100%);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    color: white;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 2px;
    background: white;
}

.lightbox-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-close:hover::before,
.lightbox-close:hover::after {
    background: var(--accent-blue);
}

/* Improved Lightbox Navigation */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10001;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev::before,
.lightbox-next::before {
    content: '';
    width: 12px;
    height: 12px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
}

.lightbox-prev::before {
    transform: rotate(45deg);
    margin-left: 4px;
}

.lightbox-next::before {
    transform: rotate(-135deg);
    margin-right: 4px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-blue);
}

.lightbox-prev:hover::before,
.lightbox-next:hover::before {
    border-color: var(--accent-blue);
}


/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(247, 249, 251, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-fast);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .side-panel {
        display: none;
    }

    nav {
        right: 0 !important;
    }

    .hero,
    .featured-section,
    .gallery-section,
    .stats-section {
        margin-right: 0 !important;
    }

    .back-to-top {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 45px;
        height: 45px;
    }
}
