* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


img,
svg,
video,
iframe,
canvas {
    transition: none;
}
:root {
    --creator: #f9f9f9;
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --accent: #d4a574;
    --accent-light: #e8c9a3;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #495057;
    --text: #2c3e50;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary: #e0e0e0;
    --primary-dark: #b0b0b0;
    --accent: #d4a574;
    --accent-light: #e8c9a3;
    --white: #1a1a1a;
    --gray-light: #2a2a2a;
    --gray-medium: #888888;
    --gray-dark: #cccccc;
    --text: #e0e0e0;
    --border: #3a3a3a;
    --shadow: rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}



main {
    opacity: 1 !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    display: none;
}

main {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

header,
footer {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.3s ease;
}

[data-theme="dark"] header {
    background: rgba(26, 26, 26, 0.98);
}

[data-theme="dark"] .nav-links {
    background: var(--white);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .nav-links li {
    border-bottom-color: var(--border);
    list-style: none;
    list-style-type: none;
}

header.hidden {
    transform: translateY(-100%);
}

nav {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 1050;
    position: relative;
    flex-wrap: wrap;
}

nav>.logo {
    flex-shrink: 0;
    min-width: 0;
}

nav>.nav-links {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    max-width: 100%;
    overflow: visible;
}

nav>.language-selector,
nav>.theme-toggle,
nav>.mobile-menu-toggle {
    flex-shrink: 0;
}

@media (max-width: 1400px) {
    nav {
        gap: 0.3rem;
    }

    .nav-links {
        gap: 0;
    }

    .nav-links a {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 1300px) {
    nav {
        gap: 0.25rem;
    }

    .nav-links {
        gap: 0;
    }

    .nav-links a {
        padding: 0.35rem 0.45rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 1200px) {
    nav {
        gap: 0.2rem;
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 0;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .nav-links a {
        padding: 0.3rem 0.4rem;
        font-size: 0.6rem;
    }

    .logo {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .language-selector {
        margin-right: 0.4rem;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

@media (max-width: 1100px) {
    nav {
        gap: 0.15rem;
        padding: 0 1.25rem;
    }

    .nav-links {
        gap: 0;
    }

    .nav-links a {
        padding: 0.3rem 0.35rem;
        font-size: 0.55rem;
    }

    .logo {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    nav {
        gap: 0.15rem;
        padding: 0 1rem;
    }

    .nav-links {
        gap: 0;
    }

    .nav-links a {
        padding: 0.3rem 0.35rem;
        font-size: 0.55rem;
    }

    .logo {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    .language-toggle {
        padding: 0.25rem 0.35rem;
        font-size: 0.7rem;
    }

    .theme-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

@media (max-width: 900px) {
    .nav-links {
        gap: 0;
    }

    .nav-links a {
        padding: 0.4rem 0.45rem;
        font-size: 0.75rem;
    }

    .logo {
        font-size: 1.1rem;
    }
}

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

    .language-selector {
        margin-right: 0.5rem;
    }

    .language-toggle {
        padding: 0.4rem 0.6rem;
        min-width: 60px;
        font-size: 0.85rem;
    }

    .language-toggle .language-code {
        display: none;
    }

    .language-menu {
        right: 0;
        min-width: 100px;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.logo a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.logo:hover {
    transform: scale(1.05);
}

.logo::after {
    display: none;
}

.language-selector {
    position: relative;
    margin-right: 1rem;
}

.language-dropdown {
    position: relative;
}

.language-toggle {
    background: var(--gray-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 70px;
}

.language-toggle:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.language-toggle .language-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.language-toggle .language-code {
    font-weight: 600;
}

.language-toggle i {
    font-size: 0.7rem;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.language-dropdown.active .language-toggle i {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.language-dropdown.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu li {
    margin: 0;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.language-option:hover {
    background: var(--gray-light);
    color: var(--accent);
}

.language-option .language-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.language-option .language-name {
    font-weight: 500;
}

[data-theme="dark"] .language-menu {
    background: var(--white);
    border-color: var(--border);
}

[data-theme="dark"] .language-toggle {
    border-color: var(--border);
}

[data-theme="dark"] .language-toggle:hover {
    background: var(--accent);
    color: var(--white);
}

.theme-toggle {
    background: var(--gray-light);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
    z-index: 1000;
}

.theme-toggle:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-links li {
    list-style: none;
    list-style-type: none;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 1.2rem;
    margin: 0 0.3rem;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
    background: var(--gray-light);
}

.nav-links a.active {
    color: var(--accent);
    background: var(--gray-light);
}

.mobile-menu-toggle {
    display: none;
    background: var(--gray-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000 !important;
}

.mobile-menu-toggle:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}


.hero {
    min-height: 100vh;
    position: relative;
    background: var(--white);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -ms-transition: opacity 1s ease-in-out;
    -o-transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.4), rgba(44, 62, 80, 0.6));
    z-index: 1;
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero-content {
    max-width: 1600px;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
    width: 100%;
    margin: 0 auto;
}

.hero-launch {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.75rem;
    color: var(--white);
    opacity: 0.9;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 0.9s ease;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    animation: fadeInUp 1s ease, slideInLeft 1s ease;
    color: var(--white);
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .hero h1 {
    color: #ffffff;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.9);
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent);
    animation: expandLine 1.5s ease 0.5s forwards;
}

.hero .subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: fadeInUp 1s ease 0.3s both;
    opacity: 0;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .hero .subtitle {
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero .description {
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: var(--white);
    animation: fadeInUp 1s ease 0.6s both;
    opacity: 0;
    line-height: 1.8;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .hero .description {
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .hero-launch {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .cta-secondary {
    color: #ffffff !important;
    border-color: var(--accent-light);
}

[data-theme="dark"] .cta-secondary:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
}


[data-theme="dark"] section[style*="var(--gray-light)"] {
    background: var(--white) !important;
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.cta-button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
    color: var(--white);
}

.cta-button span {
    position: relative;
    z-index: 1;
}

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

.cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--accent-light);
    box-shadow: none;
}

.cta-secondary:hover {
    background: rgba(0, 0, 0, 0.2);
    color: var(--white);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}


.promo-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
    width: 100vw;
    max-width: none;
}


.page-transition-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 99999;
    pointer-events: none;
    will-change: transform;
    transform: translateX(100%);
}

.page-transition-overlay.slide-in {
    animation: slideInFromRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: all;
}

.page-transition-overlay.slide-out {
    animation: slideOutToLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

[data-theme="dark"] .page-transition-overlay {
    background: var(--white);
}

.promo-banner-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.promo-banner h3 {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.promo-banner p {
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.promo-banner-link {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.promo-banner-link:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.promo-banner-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
}

.advantage-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.advantage-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: 0 2px 8px var(--shadow);
}

.advantage-list i {
    font-size: 1.4rem;
    color: var(--accent);
    margin-top: 0.1rem;
}

.advantage-list span {
    color: var(--gray-medium);
}


.nearby-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

.nearby-hero::before {
    display: none;
}

.nearby-hero-overlay {
    display: none;
}

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

.nearby-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    color: var(--primary);
    -webkit-transition: opacity 0.8s ease, transform 0.8s ease;
    -moz-transition: opacity 0.8s ease, transform 0.8s ease;
    -ms-transition: opacity 0.8s ease, transform 0.8s ease;
    -o-transition: opacity 0.8s ease, transform 0.8s ease;
}

.nearby-hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.nearby-hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 3px;
    background: var(--accent);
    transition: transform 1s ease;
    transform-origin: center;
    border-radius: 2px;
}

.nearby-hero-title.visible::after {
    transform: translateX(-50%) scaleX(1);
}

.nearby-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.nearby-section {
    padding: 2rem 1rem 4rem;
}

.nearby-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
    color: var(--gray-medium);
    font-size: 1.1rem;
    line-height: 1.7;
}

.nearby-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.nearby-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 0 1 calc(33.333% - 2.5rem);
    max-width: 380px;
    display: flex;
    flex-direction: column;
}

.nearby-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(212, 165, 116, 0.5) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nearby-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nearby-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.nearby-card:hover::before {
    transform: scaleX(1);
}

.nearby-card:hover::after {
    opacity: 1;
}

.nearby-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem 2rem 1.5rem;
    position: relative;
    z-index: 2;
}

.nearby-card-icon-wrapper {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15) 0%, rgba(212, 165, 116, 0.05) 100%);
    border-radius: 12px;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
}

.nearby-card:hover .nearby-card-icon-wrapper {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.25) 0%, rgba(212, 165, 116, 0.1) 100%);
    transform: scale(1.1) rotate(5deg);
}

.nearby-card-icon {
    font-size: 2rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.nearby-card:hover .nearby-card-icon {
    transform: scale(1.15);
}

.nearby-card-title-wrapper {
    flex: 1;
}

.nearby-card-title {
    margin: 0 0 0.5rem;
    text-transform: none;
    letter-spacing: 0.2px;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.nearby-card:hover .nearby-card-title {
    color: var(--accent);
}

.nearby-card-distance {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-medium);
    font-weight: 500;
}

.nearby-card-body {
    padding: 0 2rem 2rem;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nearby-card-text {
    color: var(--gray-medium);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    flex: 1;
}

.nearby-card-link {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.nearby-card-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nearby-card-link a i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.nearby-card-link a:hover {
    color: var(--primary);
    gap: 0.75rem;
}

.nearby-card-link a:hover i {
    transform: translate(2px, -2px);
}

@media (max-width: 1024px) {
    .nearby-card {
        flex: 0 1 calc(50% - 1.25rem);
        max-width: none;
    }
}

@media (max-width: 992px) {
    .apartments-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .apartments-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .nearby-hero {
        min-height: 220px;
        margin-bottom: 3rem;
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .nearby-hero-content {
        padding: 1.5rem 1rem;
    }

    .nearby-intro {
        margin-bottom: 3rem;
        font-size: 1rem;
        padding: 0 1rem;
    }

    .nearby-grid {
        gap: 2rem;
        padding: 0 1rem;
    }

    .nearby-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .nearby-card-header {
        padding: 2rem 1.5rem 1.25rem;
        gap: 1.25rem;
    }

    .nearby-card-icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .nearby-card-icon {
        font-size: 1.75rem;
    }

    .nearby-card-title {
        font-size: 1.15rem;
    }

    .nearby-card-body {
        padding: 0 1.5rem 1.75rem;
    }

}


.apartment-floorplan {
    max-width: 800px;
    margin: 0 auto 3rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    background: var(--white);
}

.apartment-floorplan img {
    width: 100%;
    height: auto;
    display: block;
}


section {
    padding: 5rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

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


main>section.hero {
    max-width: none;
    width: 100vw;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    color: var(--primary);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 3px;
    background: var(--accent);
    transition: transform 1s ease;
    transform-origin: center;
    border-radius: 2px;
}

.section-title.visible::after {
    transform: translateX(-50%) scaleX(1);
}


.apartments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}


.apartments-grid>.apartment-card:nth-child(3n+1):last-child {
    grid-column: 2;
}

.apartment-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 2px 10px var(--shadow);
}

.apartment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.apartment-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.apartment-card-floorplan {
    width: 100%;
    height: 200px;
    background: var(--gray-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.apartment-card-floorplan img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.apartment-card:hover .apartment-card-floorplan img {
    opacity: 1;
}

.apartment-card-content {
    padding: 1.5rem;
}

.apartment-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent);
    color: var(--white);
    text-transform: none;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.apartment-status.reserved {
    background: var(--gray-medium);
}

.apartment-status.available {
    background: #28a745;
}

.apartment-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    color: var(--primary);
    font-weight: 600;
}

.apartment-details {
    list-style: none;
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.apartment-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
}

.apartment-details li:last-child {
    border-bottom: none;
}

.apartment-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
    color: var(--accent);
}


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

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
    background: var(--gray-light);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

[data-theme="dark"] .lightbox {
    background: rgba(0, 0, 0, 0.98);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    position: relative;
    animation: fadeInUp 0.3s ease;
    cursor: default;
}

.lightbox-content img {
    width: auto;
    max-width: 100%;
    height: 80vh;
    object-fit: contain;
    display: block;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .lightbox-content img {
    border-color: var(--border);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 2px 10px var(--shadow);
}

.lightbox-close:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 2px 10px var(--shadow);
}

.lightbox-nav:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}


.apartment-detail-header {
    background: var(--gray-light);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
}

.apartment-detail-header-content {
    max-width: 1600px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--gray-medium);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.apartment-detail-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.apartment-detail-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.apartment-gallery-header {
    position: relative;
    margin-bottom: 2rem;
}

.apartment-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.floorplan-button {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
    z-index: 10;
}

.floorplan-button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

.floorplan-button i {
    font-size: 1rem;
}

.apartment-main-image {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--shadow);
    background: var(--gray-light);
    position: relative;
}

.apartment-main-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.apartment-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.apartment-main-image:hover img {
    transform: scale(1.05);
}

.apartment-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    grid-column: 1 / -1;
    margin-top: 1rem;
    min-height: 100px;
}

.apartment-thumbnails picture {
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow);
    background: var(--gray-light);
    position: relative;
    display: block;
}

.apartment-thumbnails picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.apartment-thumbnails picture img.apartment-thumbnail {
    opacity: 0.7;
}

.apartment-thumbnails picture img.apartment-thumbnail.active {
    opacity: 1;
}


.apartment-thumbnails picture:has(img.active) {
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.apartment-thumbnails picture:hover {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.apartment-thumbnails picture:hover img {
    opacity: 1;
}


.apartment-thumbnails picture.active-thumb {
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}


.apartment-gallery-main {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--shadow);
}

.apartment-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.apartment-gallery-main:hover img {
    transform: scale(1.05);
}

.apartment-gallery-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow);
}

.apartment-gallery-thumb:hover {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.apartment-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apartment-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 10px var(--shadow);
}

.apartment-info-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: 0.5px;
    color: var(--primary);
    font-weight: 600;
}

.apartment-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1.5rem 0;
}

.apartment-features-list {
    list-style: none;
    margin: 2rem 0;
}

.apartment-features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apartment-features-list li:last-child {
    border-bottom: none;
}

.apartment-features-list i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.reserve-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.reserve-button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
    color: var(--white);
}


.occupancy-panel {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--gray-light);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.occupancy-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: 0.3px;
    color: var(--primary);
}

.occupancy-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.occupancy-group {
    flex: 1;
}

.occupancy-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: none;
    letter-spacing: 0.3px;
}

.occupancy-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
}

.occupancy-input-wrapper input {
    flex: 1;
    border: none;
    padding: 0.75rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    color: var(--text);
    min-width: 0;
}

.occupancy-input-wrapper input:focus {
    outline: none;
}

.occupancy-button {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.occupancy-button:hover {
    background: var(--accent-light);
}

.occupancy-button:disabled {
    background: var(--gray-medium);
    cursor: not-allowed;
    opacity: 0.5;
}

.occupancy-button i {
    font-size: 0.85rem;
}

.occupancy-hint {
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin: 0;
    line-height: 1.5;
}

.occupancy-hint.error {
    color: #dc3545;
    font-weight: 600;
}

.occupancy-hint.warning {
    color: #ffc107;
    font-weight: 600;
}

.occupancy-input-wrapper input.error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.apartment-description {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.apartment-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: 0.5px;
    color: var(--primary);
    font-weight: 600;
}

.apartment-description p {
    line-height: 1.8;
    color: var(--gray-medium);
    margin-bottom: 1rem;
}

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

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-light);
    transition: all 0.3s ease;
}

.amenity-item:hover {
    border-color: var(--accent);
    background: rgba(212, 165, 116, 0.05);
    transform: translateX(5px);
}

.amenity-item i {
    color: var(--accent);
    font-size: 1.2rem;
}



.calendar-container {
    width: auto;
    margin: 1.5rem auto 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px var(--shadow);
    min-height: 400px;
    display: block;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-nav-btn {
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    min-height: 300px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    text-transform: none;
    padding: 1rem;
    background: var(--gray-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--primary);
}

.calendar-day {
    text-align: center;
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: var(--white);
    overflow: hidden;
}

.calendar-day:hover {
    background: var(--gray-light);
    transform: scale(1.05);
}

.calendar-day.other-month {
    opacity: 0.3;
    cursor: default;
}

.calendar-day.past {
    background: #e0e0e0;
    color: var(--gray-medium);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.past .day-number {
    color: var(--gray-medium);
}

.calendar-day.past .day-price {
    opacity: 0.6;
}

.calendar-day.today {
    background: #fff3cd;
    border: 2px solid var(--accent);
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.7;
}

.calendar-day.today .day-number {
    color: var(--primary);
}

.calendar-day.today .day-price {
    opacity: 0.8;
}

.calendar-day.booked {
    background: var(--gray-medium);
    color: var(--white);
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-day.discount {
    background: #ffc107;
    color: var(--text);
    font-weight: 600;
    position: relative;
}

.calendar-day.discount:hover {
    background: #ffb300;
}

.calendar-day-discount {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff5722;
    color: var(--white);
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.calendar-day.selected {
    background: rgba(212, 165, 116, 0.3);
    border-color: var(--accent);
    position: relative;
    font-weight: 600;
    z-index: 2;
}

.calendar-day.selected .day-number {
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.calendar-day.selected .day-price {
    position: relative;
    z-index: 1;
}

.calendar-day.in-range {
    background: rgba(212, 165, 116, 0.3);
    border-color: var(--accent);
    position: relative;
}

.calendar-day.in-range::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 165, 116, 0.2);
    z-index: 0;
}

.calendar-day.in-range .day-number {
    position: relative;
    z-index: 1;
    color: var(--primary);
}

.calendar-day.in-range .day-price {
    position: relative;
    z-index: 1;
}

.calendar-day-number {
    font-weight: bold;
    font-size: 1.1rem;
}

.calendar-day-price {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.calendar-day .day-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.calendar-day .day-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.calendar-day .day-price {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.25rem;
    padding: 0.15rem 0.3rem;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 4px;
    text-align: center;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.calendar-day.has-price {
    border-color: var(--accent);
    background: rgba(212, 165, 116, 0.05);
}

.calendar-day.has-price:hover {
    background: rgba(212, 165, 116, 0.15);
}


.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: var(--gray-light);
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-transform: none;
    letter-spacing: 0.5px;
    color: var(--primary);
    font-weight: 600;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    border-color: var(--accent);
    background: rgba(212, 165, 116, 0.05);
    transform: translateX(5px);
}

.contact-info-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    color: var(--accent);
}

.contact-info-item-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: 0.3px;
    color: var(--primary);
    font-weight: 600;
}

.contact-info-item-content a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-info-item-content a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.form-message {
    display: none;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    display: block;
}


.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--gray-light);
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: 0.3px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.submit-button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
    color: var(--white);
}

.submit-button span {
    position: relative;
    z-index: 1;
}


footer {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 5rem;
}

[data-theme="dark"] footer {
    background: #000000;
    color: #ffffff;
}

[data-theme="dark"] footer * {
    color: #ffffff;
}

[data-theme="dark"] .footer-links a {
    color: #ffffff;
}

[data-theme="dark"] .footer-contact a {
    color: #ffffff;
}

[data-theme="dark"] .copyright {
    color: rgba(255, 255, 255, 0.9);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style-type: none;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* "Živšie" externé odkazy vo footeri */
footer a[target="_blank"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

footer a[target="_blank"] i {
    font-size: 0.95em;
    opacity: 0.9;
}

footer a[target="_blank"]:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -2px 0 var(--accent);
}

footer a[target="_blank"]:focus-visible {
    opacity: 1;
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -2px 0 var(--accent);
}

@media (prefers-reduced-motion: reduce) {
    footer a[target="_blank"] {
        transition: opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    }
    footer a[target="_blank"]:hover {
        transform: none;
    }
}

.footer-contact {
    margin: 2rem 0;
}

.footer-contact p {
    margin: 0.5rem 0;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
}

.copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}


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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandLine {
    from {
        width: 0;
    }

    to {
        width: 100px;
    }
}


@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        z-index: 1002;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 10px var(--shadow);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        display: flex;
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
        list-style: none;
        list-style-type: none;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001 !important;
    }

    .mobile-menu-toggle.active i::before {
        content: "\f00d";

    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero .description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .cta-button {
        width: 100%;
        max-width: 100%;
    }

    .promo-banner {
        padding: 2rem 1.5rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .promo-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .promo-banner-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        font-size: 2rem;
    }

    .promo-banner h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .promo-banner p {
        font-size: 1rem;
        margin: 0;
    }

    .promo-banner-link {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }


    .apartment-card-floorplan {
        height: 120px;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.2rem;
    }

    .calendar-day-header {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }

    .calendar-day {
        padding: 0.3rem;
        font-size: 0.8rem;
        min-height: 55px;
    }

    .calendar-day .day-number {
        font-size: 0.7rem;
        line-height: 1;
    }

    .calendar-day .day-price {
        font-size: 0.55rem;
        padding: 0.08rem 0.15rem;
        margin-top: 0.1rem;
        line-height: 1.1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .calendar-wrapper {
        grid-template-columns: 1fr;
    }

    .apartment-detail-main {
        grid-template-columns: 1fr;
    }

    .apartment-info-card {
        position: static;
    }

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

    .apartment-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .apartment-main-image {
        grid-column: 1;
    }

    .floorplan-button {
        position: static;
        width: 100%;
        margin-top: 1rem;
        justify-content: center;
    }


    section>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    section>div[style*="grid-template-columns"]>div {
        padding: 2rem 1.5rem !important;
    }
}

.reservation-banner {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(212, 165, 116, 0.05) 100%);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 0 auto 3rem;
    max-width: 1400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.reservation-banner-content {
    max-width: 100%;
}

.reservation-banner-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.reservation-banner-occupancy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
}

.reservation-banner-occupancy .form-group {
    margin-bottom: 0;
}

.reservation-banner .form-group {
    margin-bottom: 1.5rem;
}

.reservation-banner .form-group:last-child {
    margin-bottom: 0;
}

.reservation-banner input[type="number"] {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--primary);
    transition: all 0.3s ease;
    appearance: textfield;
}

.reservation-banner input[type="number"]::-webkit-outer-spin-button,
.reservation-banner input[type="number"]::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.reservation-banner input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.reservation-banner .form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.reservation-banner textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    background: var(--white);
    color: var(--primary);
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

.reservation-banner textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.reservation-banner textarea::placeholder {
    color: var(--gray-medium);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .reservation-banner {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .reservation-banner-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .reservation-banner textarea {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        min-height: 100px;
    }

    .reservation-banner-occupancy {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 0;
    }

    .reservation-banner input[type="number"] {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

.calendar-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.calendar-form {
    background: var(--gray-light);
    padding: 2rem;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    min-height: 500px;
}

.reservation-form {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
}

.occupancy-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.occupancy-group-row .form-group {
    margin-bottom: 0;
}

.date-range-error,
.occupancy-error {
    color: #dc3545;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.5rem 0 1rem;
    padding: 0.75rem 1rem;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
}

.reservation-form input.error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.reservation-form input.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

@media (max-width: 768px) {
    .occupancy-group-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 968px) {
    .calendar-wrapper {
        grid-template-columns: 1fr;
    }

    .calendar-form {
        padding: 1.5rem;
    }

    .calendar-nav-btn {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }

    .calendar-day {
        padding: 0.25rem;
        display: grid;
        place-items: center;
    }

    .calendar-day-number {
        font-size: 0.8rem;
    }

    .calendar-container {
        max-width: 100vw;
        padding: 0.5rem;
        min-height: auto;
        margin: 0;
    }

    .calendar-header {
        margin-bottom: 1rem;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.15rem;
        min-height: auto;
    }

    .calendar-day-header {
        padding: 0.4rem 0.2rem;
        font-size: 0.7rem;
    }

    .calendar-day {
        padding: 0.2rem;
        font-size: 0.7rem;
        min-height: 45px;
        aspect-ratio: 1;
    }

    .calendar-day .day-number {
        font-size: 0.65rem;
        line-height: 1;
        margin-bottom: 0.1rem;
    }

    .calendar-day .day-price {
        font-size: 0.5rem;
        padding: 0.05rem 0.1rem;
        margin-top: 0.05rem;
        line-height: 1;
    }

    .calendar-day .day-content {
        gap: 0.05rem;
        padding: 0.1rem;
    }
}

.creator {
    color: var(--creator); 
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.creator:hover {
    color: var(--accent);
    text-decoration: underline;
}