/* ========================================
   Livada din Muscel - Main Stylesheet
   Premium Rural Accommodation Design
   ======================================== */

/* Google Fonts alternative with system fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;500;600;700&display=swap');

:root {
    --font-serif: "Playfair Display", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #40916c;
    --primary-pale: #d8f3dc;
    --accent: #c9944a;
    --accent-light: #ddb574;
    --accent-dark: #a67832;
    --warm: #f5ebe0;
    --warm-dark: #e6d5c3;
    --dark: #1a1a2e;
    --dark-soft: #2d2d44;
    --text: #3d3d3d;
    --text-light: #6b7280;
    --light: #faf9f7;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 12px 48px rgba(0,0,0,0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base ---- */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}


body {
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    color: var(--text);
    line-height: 1.75;
    background: var(--light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

p { color: var(--text-light); }

a { transition: var(--transition); }

img { transition: var(--transition); }

/* ---- Bootstrap Overrides ---- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 15px rgba(45,106,79,0.3);
    transition: var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 6px 25px rgba(45,106,79,0.4);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 0.65rem 2rem;
    font-weight: 600;
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(45,106,79,0.3);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50px;
    padding: 0.65rem 2rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.85rem 2.5rem;
    font-size: 1.05rem;
}

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.badge.bg-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    font-weight: 600;
    padding: 0.45em 0.9em;
    border-radius: 50px;
    font-size: 0.8rem;
}

/* ---- Navbar ---- */
#mainNav {
    transition: var(--transition);
    padding: 1.1rem 0;
    background: transparent !important;
    z-index: 1050;
}
#mainNav .navbar-brand,
#mainNav .nav-link {
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
#mainNav.scrolled .navbar-brand,
#mainNav.scrolled .nav-link {
    text-shadow: none;
}
#mainNav.scrolled {
    background: rgba(27, 67, 50, 0.97) !important;
    backdrop-filter: blur(12px);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.navbar-brand {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.navbar-brand i {
    color: var(--accent-light);
}
.nav-link {
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.9rem !important;
    position: relative;
    font-size: 0.92rem;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-light);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Language dropdown */
.lang-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 0.35rem 0.9rem !important;
    font-size: 0.88rem;
}
.lang-dropdown .dropdown-toggle::after {
    display: none;
}
.lang-dropdown .dropdown-menu {
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 180px;
    background: var(--white);
}
.lang-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
}
.lang-dropdown .dropdown-item:hover {
    background: var(--primary-pale);
}
.lang-dropdown .dropdown-item.active {
    background: var(--primary);
    color: #fff;
}
.lang-flag {
    font-size: 1.2rem;
    line-height: 1;
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 8vh;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.1) 40%,
        rgba(0,0,0,0.55) 100%
    );
    z-index: 1;
}
.hero-section > .container {
    position: relative;
    z-index: 2;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    z-index: 1;
}
.hero-section h1 {
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}
.hero-section .lead {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
    font-size: 1.3rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-section .hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    letter-spacing: 0.02em;
}
.hero-section .hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}
.hero-section .hero-location svg {
    width: 14px;
    height: 14px;
}
.hero-desc {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.hero-desc p {
    margin: 0;
}
.hero-section .hero-buttons .btn {
    border-radius: 50px;
    padding: 0.85rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.hero-section .hero-buttons .btn-hero-primary {
    background: rgba(255,255,255,0.95);
    color: #1a1a2e;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.hero-section .hero-buttons .btn-hero-primary:hover {
    background: #fff;
    box-shadow: 0 6px 30px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}
.hero-section .hero-buttons .btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.hero-section .hero-buttons .btn-hero-outline:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
}

/* ---- Section Styling ---- */
section {
    scroll-margin-top: 76px;
}

.section-padding {
    padding: 5.5rem 0;
}

.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    position: relative;
    color: var(--primary);
    display: inline-block;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 3px;
    margin: 0 auto 1rem;
    border: none;
    opacity: 1;
}

.bg-light {
    background-color: var(--warm) !important;
}

/* Alternating section backgrounds */
section:nth-of-type(odd) {
    background: var(--light);
}
section:nth-of-type(even) {
    background: var(--warm);
}
section#hero {
    background: none;
}

/* ---- Cards ---- */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    background: var(--white);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}
.card:hover .card-img-top {
    transform: scale(1.05);
}
.card-body {
    padding: 1.5rem;
}
.card-header.bg-primary {
    border-radius: var(--radius) var(--radius) 0 0 !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    border: none;
    padding: 1.2rem;
}

/* ---- About Features ---- */
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-pale), #b7e4c7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}
.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}
.feature-box:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(45,106,79,0.2);
}

/* ---- About Grid ---- */
.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.about-grid-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.about-grid-col-offset {
    padding-top: 1.5rem;
}
.about-img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}
.about-img-tall {
    aspect-ratio: 3/4;
}
.about-img-wide {
    aspect-ratio: 4/3;
}
.about-card {
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid #f0eeeb;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.about-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.about-card h6 {
    color: var(--dark);
    font-size: 1rem;
}
.about-card p {
    line-height: 1.6;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.about-stat-box {
    background: #fef9f0;
    border: 1px solid #fde8c8;
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}
.about-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.about-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #92400e;
    font-family: var(--font-serif);
}
.about-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #a16207;
    margin-top: 0.15rem;
}

@media (max-width: 768px) {
    .about-image-grid {
        max-width: 80%;
        margin: 0 auto 2rem;
    }
    .about-grid-col-offset {
        padding-top: 0.75rem;
    }
}

/* ---- Facilities ---- */
.facility-card .card-body {
    padding: 1.8rem;
}
.facility-card .card-title {
    color: var(--primary-dark);
    font-size: 1.15rem;
}
.facility-item {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.facility-item i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* ---- Services ---- */
.service-card {
    overflow: hidden;
}
.service-carousel-img {
    height: 220px;
    object-fit: cover;
}
.service-card .carousel-control-prev,
.service-card .carousel-control-next {
    width: 32px;
    height: 32px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}
.service-card:hover .carousel-control-prev,
.service-card:hover .carousel-control-next {
    opacity: 1;
}
.service-card .carousel-control-prev { left: 8px; }
.service-card .carousel-control-next { right: 8px; }
.service-card .carousel-control-prev-icon,
.service-card .carousel-control-next-icon {
    width: 14px;
    height: 14px;
}
.carousel-indicators-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
}
.carousel-indicators-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    padding: 0;
    transition: all 0.2s;
}
.carousel-indicators-dots button.active {
    background: #fff;
    transform: scale(1.2);
}
.service-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}
.service-price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #2d6a4f);
    line-height: 1;
}
.service-price-unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color, #2d6a4f);
}
.service-price-type {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 400;
}

/* ---- Packages ---- */
.package-card {
    text-align: center;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}
.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.package-card .card-header {
    padding: 1.5rem 1rem;
    border-bottom: none;
}
.package-original-price {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 0.15rem;
}
.package-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.package-price small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}
.package-desc { font-size: 0.92rem; text-align: left; }
.package-desc p { margin: 0.3rem 0; }
.package-desc ul, .package-desc ol { padding-left: 1.2rem; margin: 0.3rem 0; }
.package-desc a { color: var(--primary); }
.package-feature {
    padding: 0.45rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.package-feature:last-child {
    border-bottom: none;
}

/* ---- Gallery ---- */
.gallery-thumb {
    width: 100%;
    height: 240px;
    object-fit: cover;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}
.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(27,67,50,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    pointer-events: none;
}
.gallery-item:hover::after {
    opacity: 1;
}
.gallery-item:hover .gallery-thumb {
    transform: scale(1.08);
}

/* ---- Testimonials ---- */
.testimonial-card {
    border-left: 4px solid var(--accent);
    position: relative;
}
.testimonial-card::before {
    content: '\201c';
    font-size: 4rem;
    color: var(--primary-pale);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    font-family: Georgia, serif;
}
.testimonial-avatar {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border: 3px solid var(--primary-pale);
}
.testimonial-avatar-placeholder {
    width: 55px;
    height: 55px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.stars {
    color: #f59e0b;
}
.stars i {
    font-size: 0.85rem;
}

/* ---- Contact / Booking ---- */
.contact-section {
    background: var(--light);
}
.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45,106,79,0.1);
}
.contact-form .form-label {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border-radius: var(--radius);
    overflow: hidden;
}
.contact-info-card h5 { color: white; }
.contact-info-card .info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}
.contact-info-card .info-item:last-child {
    border-bottom: none;
}
.contact-info-card .info-item a {
    color: inherit;
    text-decoration: none;
}
.contact-info-card .info-item a:hover {
    text-decoration: underline;
}
.contact-info-card .info-item i {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* ---- Footer ---- */
footer {
    background: var(--dark) !important;
    color: rgba(255,255,255,0.7);
}
footer h5 {
    color: white;
    font-size: 1.1rem;
}
footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}
footer a:hover {
    color: var(--accent-light) !important;
    padding-left: 4px;
}
footer .footer-brand {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
}
footer .footer-brand i {
    color: var(--accent-light);
}
footer hr {
    border-color: rgba(255,255,255,0.1);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animation */
.fade-in-up:nth-child(1) { animation-delay: 0s; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.fade-in-up:nth-child(4) { animation-delay: 0.3s; }
.fade-in-up:nth-child(5) { animation-delay: 0.4s; }
.fade-in-up:nth-child(6) { animation-delay: 0.5s; }

/* ---- Forms ---- */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45,106,79,0.1);
}

/* ---- Alerts ---- */
.alert {
    border: none;
    border-radius: var(--radius-sm);
}
.alert-success {
    background: var(--primary-pale);
    color: var(--primary-dark);
}
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---- Content pages ---- */
.content-body {
    max-width: 800px;
}
.content-body h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    color: var(--primary-dark);
}
.content-body p { margin-bottom: 1rem; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(27,67,50,0.98);
        border-radius: var(--radius-sm);
        padding: 1rem;
        margin-top: 0.5rem;
    }
    .nav-link::after { display: none; }
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll !important;
        min-height: 100vh;
        height: 100vh;
        padding-bottom: 5vh;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section .hero-subtitle {
        font-size: 1rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .hero-desc {
        font-size: 0.85rem;
        max-width: 90%;
    }
    .hero-section .hero-buttons .btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.85rem;
    }
    .hero-location {
        font-size: 0.65rem;
    }
    .py-5 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .gallery-thumb { height: 180px; }
    .card-img-top { height: 180px; }
}

@media (max-width: 576px) {
    .hero-section h1 { font-size: 1.8rem; }
    .btn-lg { padding: 0.7rem 1.8rem; font-size: 0.95rem; }
}
