/* FILE: static/css/theme.css */
:root {
    --primary-red: #c62828;
    --primary-yellow: #ffd54f;
    --primary-black: #212121;
    --primary-white: #ffffff;
    --secondary-red: #e53935;
    --secondary-yellow: #ffecb3;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #757575;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

body {
    color: var(--primary-black);
    background: var(--primary-white);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation - COMPACT VERSION */
.menu-header {
    background: var(--primary-white);
    border-bottom: 1px solid var(--gray-medium);
    position: relative; /* Remove sticky positioning */
    z-index: 100;
    transition: all 0.3s ease;
}

.menu-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0; /* Reduced padding */
}

.brand {
    color: var(--primary-red) !important;
    font-weight: 700;
    font-size: 1.25rem; /* Smaller font size */
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem; /* Reduced gap */
    margin: 0;
}

.nav-menu li a {
    color: var(--primary-black);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.25rem 0; /* Reduced padding */
    position: relative;
    font-size: 0.9rem; /* Smaller font */
}

.nav-menu li a:hover {
    color: var(--primary-red);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

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

/* Mobile Menu Button - Updated for compact header */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    position: relative;
    z-index: 1000;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--primary-red);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Hero Section - Adjusted for smaller header */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--primary-white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1566073771259-6a8506099945?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(198, 40, 40, 0.9) 0%, rgba(229, 57, 53, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem; /* Smaller title */
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem; /* Smaller subtitle */
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-pill {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

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

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: 120px;
    font-size: 0.9rem;
}

.button.primary {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

.button.primary:hover {
    background: var(--secondary-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button.secondary {
    background: transparent;
    color: var(--primary-white);
    border-color: var(--primary-white);
}

.button.secondary:hover {
    background: var(--primary-white);
    color: var(--primary-red);
    transform: translateY(-2px);
}

.button.small {
    padding: 0.4rem 1rem;
    min-width: 100px;
    font-size: 0.85rem;
}

.button.large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.button.full-width {
    width: 100%;
}

/* Info Bar */
.info-bar {
    background: var(--primary-white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-icon {
    font-size: 1.5rem;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-text strong {
    color: var(--primary-red);
    font-size: 1rem;
}

.info-text span {
    color: var(--gray-dark);
    font-size: 0.85rem;
}

/* Sections */
.section {
    padding: 3rem 0;
}

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

.section-header h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--gray-dark);
    font-size: 1.1rem;
}

/* Hotel Section */
.hotel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hotel-image {
    position: relative;
}

.image-placeholder {
    background: var(--gray-medium);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {

    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--gray-light) 25%, transparent 25%),
    linear-gradient(-45deg, var(--gray-light) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--gray-light) 75%),
    linear-gradient(-45deg, transparent 75%, var(--gray-light) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
}


.hotel-img {
    aspect-ratio: 4/3;
}

.hotel-content h3 {
    color: var(--primary-black);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

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

.feature-icon {
    background: var(--primary-yellow);
    color: var(--primary-black);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Rooms Section */
.rooms-section {
    background: var(--gray-light);
}

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

.room-card {
    background: var(--primary-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.room-card.featured {
    border: 2px solid var(--primary-yellow);
}

.room-image {
    position: relative;
}

.room-img-1, .room-img-2, .room-img-3 {
    aspect-ratio: 16/9;
}

.room-content {
    padding: 1.5rem;
}

.room-content h3 {
    color: var(--primary-red);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.room-features {
    list-style: none;
    margin: 1rem 0;
}

.room-features li {
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.room-features li::before {
    content: "•";
    color: var(--primary-yellow);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1rem;
}

.room-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-medium);
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-red);
}

/* Apartments Section */
.apartments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.apartment-img {
    aspect-ratio: 4/3;
}

.apartments-features {
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.apartment-feature strong {
    color: var(--primary-red);
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.apartment-feature p {
    font-size: 0.9rem;
}

.apartment-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-medium);
}

.price-info {
    display: flex;
    flex-direction: column;
}

.starting-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-red);
}

.discount {
    color: var(--gray-dark);
    font-size: 0.85rem;
}

/* Location Section */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.location-features {
    display: grid;
    gap: 1.25rem;
}

.location-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-light);
    border-radius: 6px;
}

.location-icon {
    font-size: 1.25rem;
}

.location-text {
    display: flex;
    flex-direction: column;
}

.location-text strong {
    color: var(--primary-red);
    font-size: 1rem;
}

.location-text span {
    font-size: 0.85rem;
}

.nearby-amenities {
    margin-top: 2rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.amenity {
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem;
}

.map-container {
    background: var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--gray-medium) 25%, transparent 25%),
    linear-gradient(-45deg, var(--gray-medium) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--gray-medium) 75%),
    linear-gradient(-45deg, transparent 75%, var(--gray-medium) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.map-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.map-point {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery-section {
    background: var(--gray-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    grid-auto-rows: 150px;
}

.gallery-item {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

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

.gallery-img-1, .gallery-img-2, .gallery-img-3,
.gallery-img-4, .gallery-img-5 {
    aspect-ratio: 1;
}

.gallery-item.large .image-placeholder {
    aspect-ratio: 2/1;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.contact-item strong {
    color: var(--primary-red);
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.contact-item p {
    font-size: 0.9rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--gray-medium);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

/* Footer */
.footer {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: var(--primary-yellow);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    margin: 0.4rem 0;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
    color: var(--primary-yellow);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin: 0.4rem 0;
}

.footer-links a {
    color: var(--primary-white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    background: var(--primary-red);
    color: var(--primary-white);
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease;
    font-size: 0.85rem;
}

.social-btn:hover {
    background: var(--secondary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-dark);
    color: var(--gray-dark);
    font-size: 0.85rem;
}

.footer-bottom strong {
    color: var(--primary-yellow);
}

/* Content Sections */
.content-section {
    padding: 2rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid var(--gray-medium);
}

/* Markdown Body */
.markdown-body {
    line-height: 1.6;
    font-size: 1rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    color: var(--primary-red);
    margin: 1.5rem 0 0.75rem;
}

.markdown-body a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body ul,
.markdown-body ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.markdown-body li {
    margin: 0.4rem 0;
    font-size: 0.95rem;
}

/* Cards for List Pages */
.card {
    background: var(--primary-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.card-text {
    color: var(--gray-dark);
    flex-grow: 1;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-black);
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    font-size: 0.85rem;
}

.pagination a:hover {
    background: var(--primary-red);
    color: var(--primary-white);
    border-color: var(--primary-red);
}

.pagination .active {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-color: var(--primary-yellow);
}

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: var(--primary-white);
        flex-direction: column;
        padding: 4rem 1.5rem 2rem;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }

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

    .hero {
        height: 60vh;
        min-height: 400px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .button {
        width: 100%;
        max-width: 250px;
    }

    .hotel-grid,
    .apartments-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 120px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .apartment-cta {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .room-price {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .section {
        padding: 2rem 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .menu-header nav {
        flex-direction: row;
        gap: 0;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

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

    .section-header h2 {
        font-size: 1.5rem;
    }

    .feature-pill {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 2.5rem; }