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

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Prevent scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile menu overlay */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Reset list styles for navigation, but keep for content */
nav ul,
.main-nav ul,
.footer-nav ul,
.mobile-menu ul {
    list-style: none;
}

/* ===== Color Variables ===== */
:root {
    /* Primary and secondary colors are set in base.html.twig from site settings */
    /* --primary-color and --secondary-color are defined there */
    --tertiary-color: #efb2a8;
    --text-gray: #808080;
    --light-bg: #f7f7f7;
    --white: #ffffff;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
    background-color: var(--header-color, var(--white));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

.logo-image {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* Allow inline height style to override max-height when specified */
.logo-image[style*="height"] {
    max-height: none;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-number {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 15px;
}

.phone-number:hover {
    color: var(--secondary-color);
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.language-switcher span {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.language-switcher span:hover,
.language-switcher span.lang-active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 700px;
    background: linear-gradient(rgba(3, 33, 63, 0.5), rgba(3, 33, 63, 0.5)),
                url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?q=80&w=2000') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== Intro Section ===== */
.intro-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.intro-section h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.intro-section p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== Properties Section ===== */
.properties-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.properties-section h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    font-weight: 600;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* Center items when there are fewer properties than columns */
@supports (width: min(350px, 100%)) {
    .properties-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        justify-items: center;
    }

    .property-card {
        max-width: 400px;
        width: 100%;
    }
}

.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card-link:hover .property-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.property-content {
    padding: 25px;
}

.property-content h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.property-location {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.property-features span {
    font-size: 14px;
    color: var(--text-gray);
    background-color: var(--light-bg);
    padding: 5px 12px;
    border-radius: 5px;
}

.property-price {
    font-size: 20px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.property-agent {
    font-size: 14px;
    color: var(--text-gray);
    font-style: italic;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 600;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c02828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(221, 51, 51, 0.3);
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--footer-color, var(--primary-color));
    color: var(--tertiary-color);
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-column p,
.footer-column a {
    font-size: 14px;
    line-height: 1.8;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(239, 178, 168, 0.3);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
}

/* ===== Property Detail Page ===== */
.property-gallery {
    background-color: #000;
    width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow-x: hidden;
}

.gallery-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

.main-image img:hover {
    opacity: 0.9;
}

.gallery-thumbnails-grid {
    display: flex;
    gap: 10px;
    padding: 15px;
    background-color: #fff;
    justify-content: center;
    align-items: stretch;
}

.thumbnail-grid-item {
    position: relative;
    width: calc(25% - 7.5px);
    height: 100px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail-grid-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-grid-item.active {
    border-color: var(--secondary-color);
}

.thumbnail-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-more {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.thumbnail-more:hover {
    background: #ececec;
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

.more-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
    gap: 3px;
}

.more-count {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #333;
}

.more-text {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

@media (max-width: 768px) {
    .gallery-thumbnails-grid {
        gap: 8px;
        padding: 10px;
    }

    .thumbnail-grid-item {
        width: calc(25% - 6px);
        height: 70px;
    }

    .more-count {
        font-size: 18px;
    }

    .more-text {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .gallery-thumbnails-grid {
        gap: 6px;
    }

    .thumbnail-grid-item {
        width: calc(25% - 4.5px);
        height: 60px;
        border-width: 2px;
    }

    .more-count {
        font-size: 16px;
    }

    .more-text {
        font-size: 8px;
    }
}

.gallery-placeholder {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.gallery-placeholder img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 600px;
}

/* ===== Lightbox/Carousel ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--secondary-color);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
}

.property-details {
    padding: 60px 0;
    background-color: var(--white);
}

.detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.detail-content h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.property-location-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 30px;
}

.property-location-detail svg {
    color: var(--secondary-color);
}

.property-features-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 24px;
}

.feature-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.property-description {
    margin-top: 30px;
}

.property-description h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.property-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0.5em;
}

/* Reduce spacing for empty paragraphs (WYSIWYG editor creates these) */
.property-description p:empty,
.description-content p:empty {
    margin: 0;
    padding: 0;
    line-height: 0;
    height: 0.3em;
}

/* Handle <p><br></p> from Quill editor - these create excessive whitespace */
.property-description p:has(br:only-child),
.description-content p:has(br:only-child) {
    margin: 0;
    padding: 0;
    line-height: 0;
    height: 0.3em;
}

/* Alternative for browsers that don't support :has() */
.property-description p br:only-child,
.description-content p br:only-child {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0.3;
}

.description-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.description-content p {
    margin-bottom: 0.5em;
}

/* Reduce spacing from <br> tags */
.description-content br + br {
    display: none;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4 {
    color: #333;
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.description-content h1 {
    font-size: 28px;
}

.description-content h2 {
    font-size: 24px;
}

.description-content h3 {
    font-size: 20px;
}

.description-content ul,
.description-content ol {
    margin: 0.5em 0;
    padding-left: 2em;
}

.description-content ul li,
.description-content ol li {
    margin: 0.3em 0;
}

.description-content ul {
    list-style-type: disc !important;
}

.description-content ol {
    list-style-type: decimal !important;
}

/* Quill editor uses <ol> with data-list="bullet" for bullet points */
.description-content ol[data-list="bullet"] {
    list-style-type: disc !important;
}

.description-content ol li[data-list="bullet"] {
    list-style-type: disc !important;
}

.description-content strong {
    font-weight: 600;
    color: #333;
}

.description-content em {
    font-style: italic;
}

.description-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.description-content a:hover {
    color: #c02828;
}

.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.description-content p {
    margin-bottom: 0.5em;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* Remove extra spacing from empty paragraphs created by Quill */
.description-content p:empty,
.description-content p br:only-child {
    margin: 0;
    line-height: 0;
}

.booking-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 2px solid var(--light-bg);
}

.booking-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.booking-card {
    background-color: var(--white);
    border: 2px solid var(--light-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light-bg);
}

.price-amount {
    font-size: 36px;
    font-weight: 600;
    color: var(--secondary-color);
}

.price-period {
    font-size: 16px;
    color: var(--text-gray);
}

.booking-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.booking-info p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.booking-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.btn-block {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #1e2f4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 67, 98, 0.3);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .main-image,
    .gallery-placeholder {
        max-height: 400px;
    }

    .main-image img,
    .gallery-placeholder img {
        max-height: 400px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding: 0 15px;
    }

    .header-container {
        padding: 0 15px;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide main nav by default on mobile */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 80px 20px 20px;
        align-items: stretch;
    }

    .main-nav li {
        border-bottom: 1px solid var(--light-bg);
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-radius: 0;
        font-size: 16px;
    }

    /* Hide header actions on mobile or make them simpler */
    .header-actions {
        display: none;
        gap: 10px;
        width: 100%;
    }

    .hero {
        min-height: 400px;
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .intro-section,
    .properties-section,
    .cta-section {
        padding: 50px 0;
    }

    .intro-section h2,
    .properties-section h2,
    .cta-section h2 {
        font-size: 28px;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-image,
    .gallery-placeholder {
        max-height: 300px;
    }

    .main-image img,
    .gallery-placeholder img {
        max-height: 300px;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 35px;
        padding: 10px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-counter {
        bottom: 15px;
        font-size: 14px;
        padding: 8px 15px;
    }

    .detail-content h1 {
        font-size: 28px;
    }

    .booking-card {
        padding: 20px;
    }

    .booking-actions .btn {
        font-size: 15px;
        padding: 12px 20px;
    }

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

    .price-amount {
        font-size: 28px;
    }
}

/* ===== Contact Form on Property Detail ===== */
.contact-form-section {
    margin-top: 50px;
    padding: 40px;
    background-color: var(--light-bg);
    border-radius: 12px;
}

.contact-form-section h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-intro {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.property-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.property-contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.property-contact-form label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.property-contact-form input,
.property-contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Rubik', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.property-contact-form input:focus,
.property-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 67, 98, 0.1);
}

.property-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.property-contact-form button[type="submit"] {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 30px 20px;
    }

    .property-contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ===== Contact Page ===== */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-container h2,
.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #333;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.contact-info {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
}

.contact-info-item {
    margin-bottom: 20px;
}

.contact-info-item h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.contact-info-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.contact-info-item a {
    color: #333;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .contact-section {
        padding: 40px 0;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* ===== Accommodation Page ===== */
.accommodation-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

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

.properties-list-container {
    width: 100%;
}

.properties-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accommodation-card {
    display: flex;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.accommodation-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.accommodation-card.hovered {
    box-shadow: 0 6px 24px rgba(221, 51, 51, 0.3);
    border: 2px solid var(--secondary-color);
}

.accommodation-image {
    width: 280px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

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

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

.accommodation-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.accommodation-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #333;
}

.accommodation-location {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.accommodation-features {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #666;
}

.accommodation-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: auto;
}

.no-properties {
    text-align: center;
    color: var(--text-gray);
    padding: 40px 20px;
    font-size: 1.1rem;
}

/* Mobile responsive */
@media (max-width: 968px) {
    .accommodation-section {
        padding: 40px 0;
    }

    .accommodation-card {
        flex-direction: column;
    }

    .accommodation-image {
        width: 100%;
        height: 220px;
    }
}

@media (max-width: 640px) {
    .accommodation-section {
        padding: 30px 0;
    }

    .accommodation-container {
        padding: 0 15px;
    }

    .accommodation-content {
        padding: 15px;
    }

    .accommodation-content h3 {
        font-size: 1.2rem;
    }

    .accommodation-features {
        gap: 10px;
        font-size: 0.85rem;
    }
}
