:root {
    /* Colors */
    --primary: #FF6B6B;
    --primary-dark: #EE5253;
    --secondary: #4ECDC4;
    --accent: #FFE66D;

    --bg-color: #F7F9FC;
    --card-bg: #FFFFFF;
    --text-main: #2D3436;
    --text-muted: #636E72;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
    --gradient-primary: linear-gradient(to right, #FF6B6B, #FF8E53);

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 25px 50px -12px rgba(255, 107, 107, 0.25);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: --bg-color;
    /* Fix variable usage */
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 40px 0;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background: white;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    /* To prevent layout shift potentially */
    transition: all 0.2s;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-top: 15px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .btn-primary {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 30px;
    background: #fdfbfb;
    /* Fallback */
    background: radial-gradient(circle at 10% 20%, rgb(255, 241, 241) 0%, rgb(249, 253, 255) 90%);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
}

.hero-shape .shape-fill {
    fill: var(--bg-color);
}

/* Castles Grid */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: #5d4037;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.price-weekend {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: white;
    margin-top: 80px;
    padding-bottom: 120px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info>p {
    margin-bottom: 40px;
    color: var(--text-muted);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background: #FFF0F0;
    padding: 15px;
    border-radius: 50%;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--text-muted);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form-wrapper {
    background: var(--bg-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color 0.3s;
    background: white;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    cursor: pointer;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary);
    outline: none;
}

/* Footer */
footer {
    background: var(--text-main);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    opacity: 0.8;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real app, implement mobile menu toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 30px;
    }

    .hero-shape svg {
        height: 20px;
    }

    .section {
        padding: 30px 0;
    }

    #castles.section {
        padding-top: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        margin-bottom: 30px;
    }


    .hero-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Subpage Styles */
.page-content {
    padding-top: var(--header-height);
    min-height: 80vh;
}

.content-block {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: 30px;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.content-block p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.info-list {
    list-style: disc;
    padding-left: 20px;
}

.info-list li {
    margin-bottom: 8px;
    color: var(--text-muted);
    line-height: 1.5;
}

.cta-box {
    margin-top: 40px;
    background: #FFF0F0;
    padding: 30px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.cta-box h3 {
    margin-bottom: 10px;
}

.cta-box p {
    margin-bottom: 20px;
}

.nav-links .active {
    color: var(--primary);
    font-weight: 600;
}

/* Product Detail Styles */
.product-detail {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas:
        "gallery header"
        "gallery info";
    column-gap: 60px;
    row-gap: 0;
    padding: 60px 0;
    margin-top: 20px;
    align-items: start;
}

.product-gallery {
    grid-area: gallery;
}

.product-header {
    grid-area: header;
}

.product-info {
    grid-area: info;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.gallery-main {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: white;
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-main:hover img {
    transform: scale(1.02);
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0;
}

.gallery-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.gallery-thumb:hover {
    opacity: 0.9;
    border-color: var(--secondary);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
    margin-top: 4px;
}

.gallery-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.product-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.product-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.product-price {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.product-price .price-weekend {
    display: block;
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 5px;
}

/* Pricing options (day vs. weekend) */
.pricing-heading {
    margin-top: 18px !important;
}

.pricing-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 14px;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 20px 18px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
}

.price-card-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.price-card-value {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}

/* Day = secondary / reference anchor */
.price-card--day {
    background: var(--bg-color);
}

.price-card--day .price-card-value {
    color: var(--text-muted);
}

/* Weekend = hero */
.price-card--weekend {
    padding-top: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #fff6f5 100%);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.price-card--weekend .price-card-value {
    font-size: 2.1rem;
    color: var(--primary);
}

.price-card-flag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.price-card-flag i {
    font-size: 0.8rem;
}

.pricing-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-hint i {
    flex-shrink: 0;
    color: var(--secondary);
    font-size: 1.1rem;
    line-height: 1.5;
}

.pricing-hint strong {
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .pricing-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.product-description,
.product-description-extended {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-description h3,
.product-info h3 {
    color: var(--text-main);
    font-size: 1.25rem;
    margin: 25px 0 15px;
}

.features-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 50px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
}

.feature-badge i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.highlight-badge {
    background: var(--accent);
    color: #5d4037;
}

.highlight-badge i {
    color: #5d4037;
}

.product-actions {
    margin-top: 25px;
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "gallery"
            "info";
        column-gap: 0;
        row-gap: 30px;
        padding-top: 20px;
    }

    .product-header {
        margin-top: 0;
    }

    .product-header .back-link {
        margin-bottom: 12px;
    }

    .product-header h1 {
        font-size: 2rem;
    }
}

/* Features Grid (City Info) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Form Status */
.form-status {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background-color: #e6fffa;
    color: #2c7a7b;
    border: 1px solid #81e6d9;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.form-status.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

/* Hide reCAPTCHA badge if needed (optional) */
/* .grecaptcha-badge { visibility: hidden; } */

/* FAQ section */
#faq details summary::-webkit-details-marker {
    display: none;
}

#faq details summary::after {
    content: '+';
    float: right;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--primary);
    transition: transform 0.2s ease;
}

#faq details[open] summary::after {
    transform: rotate(45deg);
}