/* ============================================================
   KARNEL TRAVEL GUIDE - MAIN STYLESHEET
   site.css | Bootstrap 5 + Custom Styles
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --primary:     #1a6b3a;   /* Deep green */
    --secondary:   #f9a825;   /* Golden yellow */
    --accent:      #e74c3c;   /* Coral red */
    --dark:        #1a1a2e;
    --light-bg:    #f8fffe;
    --card-shadow: 0 4px 20px rgba(0,0,0,.10);
    --hover-shadow:0 8px 30px rgba(0,0,0,.18);
    --border-rad:  12px;
    --font-main:   'Poppins', sans-serif;
    --font-head:   'Playfair Display', serif;
    --transition:  all .3s ease;
}

/* ── Base ───────────────────────────────────────────────────── */
* { box-sizing: border-box; }
body, html { overflow-x: visible !important; }
body { font-family: var(--font-main); color: #333; background: #fff; }
.content-wrapper { overflow-x: hidden; width: 100%; }
h1,h2,h3 { font-family: var(--font-head); }
a { text-decoration: none; }
img { max-width: 100%; }

/* ── Top Bar ─────────────────────────────────────────────────── */
.top-bar { background: var(--primary); }

/* ── Main Navbar ─────────────────────────────────────────────── */
.main-navbar {
    background: var(--dark) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
    padding: .75rem 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.main-navbar.scrolled {
    padding: 0.25rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.navbar-brand { font-size: 1.4rem; font-weight: 700; }
.brand-text { color: #fff; }
.brand-accent { color: var(--secondary); }
.main-navbar .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500;
    font-size: .9rem;
    padding: .5rem 1rem !important;
    border-radius: 6px;
    transition: var(--transition);
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: var(--secondary) !important; background: rgba(255,255,255,.08); }
.dropdown-menu-animated { border: none; box-shadow: var(--card-shadow); border-radius: var(--border-rad); }
.dropdown-item:hover { background: rgba(26,107,58,.08); color: var(--primary); }

/* ── Hero Carousel ───────────────────────────────────────────── */
.hero-section { position: relative; }
.hero-slide {
    height: 88vh;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex; align-items: center;
    position: relative;
}
.hero-slide::before {
    content:'';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,27,46,.75) 0%, rgba(26,107,58,.45) 100%);
}
.hero-content { position: relative; z-index:2; }
.hero-badge {
    display: inline-block;
    background: var(--secondary);
    color: #000;
    font-size: .8rem;
    font-weight: 700;
    padding: .3rem 1rem;
    border-radius: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.8rem); color: #fff; font-weight: 700; line-height: 1.1; }
.hero-subtitle { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 560px; }
.carousel-control-prev, .carousel-control-next {
    width: 48px; height: 48px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    top: 50%; transform: translateY(-50%);
    margin: 0 1rem;
}
.carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; }

/* ── Quick Search Bar ────────────────────────────────────────── */
.quick-search-bar {
    background: #fff;
    border-radius: var(--border-rad);
    box-shadow: var(--hover-shadow);
    padding: 1.5rem 2rem;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

/* ── Section Titles ──────────────────────────────────────────── */
.section-title { font-size: 2rem; font-weight: 700; color: var(--dark); }
.section-subtitle { color: #777; font-size: 1rem; }
.section-divider {
    width: 60px; height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 1rem auto;
}

/* ── Cards ───────────────────────────────────────────────────── */
.travel-card {
    border: none;
    border-radius: var(--border-rad);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.travel-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}
.card-img-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.card-img-container img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.travel-card:hover .card-img-container img { transform: scale(1.06); }
.card-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--primary); color: #fff;
    font-size: .7rem; font-weight: 600;
    padding: .3rem .8rem;
    border-radius: 50px;
    text-transform: uppercase;
}
.card-badge.badge-discount { background: var(--accent); }
.card-badge.badge-featured { background: var(--secondary); color: #000; }
.card-price {
    font-size: 1.2rem; font-weight: 700;
    color: var(--primary);
}
.card-price .per-night { font-size: .75rem; font-weight: 400; color: #888; }
.rating-stars { color: #f9a825; font-size: .85rem; }

/* ── Stats Section ───────────────────────────────────────────── */
.stats-section { background: linear-gradient(135deg, var(--primary) 0%, #0d4a28 100%); }
.stat-item { text-align: center; }
.stat-number { font-size: 3rem; font-weight: 800; color: var(--secondary); }
.stat-label { color: rgba(255,255,255,.8); font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; }

/* ── Why Choose Us ───────────────────────────────────────────── */
.feature-icon-box {
    width: 75px; height: 75px;
    background: linear-gradient(135deg, var(--primary), #2ecc71);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #fff;
    margin: 0 auto 1rem;
    transition: var(--transition);
}
.feature-card:hover .feature-icon-box { transform: rotate(10deg) scale(1.1); }

/* ── Discount Cards ──────────────────────────────────────────── */
.discount-card {
    background: linear-gradient(135deg, #f9a825 0%, #f57f17 100%);
    border-radius: var(--border-rad);
    padding: 2rem;
    color: #000;
    position: relative;
    overflow: hidden;
}
.discount-card::after {
    content: '';
    position: absolute; right: -30px; top: -30px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
}
.discount-badge {
    font-size: 3rem; font-weight: 800;
    line-height: 1;
    color: var(--primary);
}

/* ── Testimonials ────────────────────────────────────────────── */
.testimonial-card {
    background: #fff;
    border-radius: var(--border-rad);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--hover-shadow); }
.testimonial-avatar {
    width: 50px; height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff;
}

/* ── Page Headers ────────────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    padding: 5rem 0 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
}
.breadcrumb-item a { color: var(--secondary); }
.breadcrumb-item.active { color: rgba(255,255,255,.7); }

/* ── Search Page ─────────────────────────────────────────────── */
.search-filters {
    background: #fff;
    border-radius: var(--border-rad);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    position: sticky; top: 100px;
}
.filter-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #555; }
.result-category-title {
    font-size: 1.3rem; font-weight: 700;
    padding-bottom: .5rem;
    border-bottom: 3px solid var(--primary);
    margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: .5rem;
}

/* ── Information Cards ───────────────────────────────────────── */
.info-hub-card {
    border: none;
    border-radius: var(--border-rad);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    background: #fff;
    border-bottom: 4px solid transparent;
}
.info-hub-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-bottom-color: var(--primary);
}
.info-hub-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ── Contact & Forms ─────────────────────────────────────────── */
.contact-info-card {
    background: linear-gradient(135deg, var(--primary), #0d4a28);
    border-radius: var(--border-rad);
    color: #fff;
    padding: 2.5rem;
}
.form-card {
    border: none;
    border-radius: var(--border-rad);
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
}
.form-control, .form-select {
    border-radius: 8px;
    border: 1.5px solid #dee2e6;
    padding: .7rem 1rem;
    font-size: .9rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(26,107,58,.15);
}
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label {
    font-size: 1.8rem; color: #ddd; cursor: pointer;
    transition: color .2s; margin: 0 .1rem;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f9a825; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), #2ecc71);
    border: none; color: #fff;
    padding: .7rem 2rem; border-radius: 50px;
    font-weight: 600; transition: var(--transition);
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,107,58,.35);
    color: #fff;
}
.btn-outline-custom {
    border: 2px solid var(--primary); color: var(--primary);
    padding: .7rem 2rem; border-radius: 50px;
    font-weight: 600; transition: var(--transition);
    background: transparent;
}
.btn-outline-custom:hover { background: var(--primary); color: #fff; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer-section { background: #0f0f1a; color: #ccc; }
.footer-brand { color: var(--secondary); font-size: 1.3rem; font-weight: 700; }
.footer-heading { color: var(--secondary); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-text { color: #aaa; font-size: .9rem; line-height: 1.8; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #aaa; font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { color: #aaa; font-size: .9rem; margin-bottom: .7rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); color: #666; }
.footer-bottom-link { color: #888; transition: var(--transition); }
.footer-bottom-link:hover { color: var(--secondary); }
.social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,.08);
    border-radius: 8px; color: #ccc;
    margin-right: 6px; transition: var(--transition);
}
.social-btn:hover { background: var(--secondary); color: #000; }

/* ── Back to Top ─────────────────────────────────────────────── */
.back-to-top {
    position: fixed; bottom: 25px; right: 25px;
    width: 44px; height: 44px;
    background: var(--primary); color: #fff;
    border: none; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    font-size: .9rem; cursor: pointer;
    box-shadow: 0 4px 15px rgba(26,107,58,.4);
    z-index: 999; transition: var(--transition);
}
.back-to-top:hover { background: var(--secondary); color: #000; transform: translateY(-3px); }
.back-to-top.show { display: flex; }

/* ── Utilities ───────────────────────────────────────────────── */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.bg-light-custom { background-color: var(--light-bg); }
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 50px 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-slide { height: 60vh; min-height: 400px; }
    .hero-title { font-size: 1.8rem; }
    .stat-number { font-size: 2rem; }
    .section-padding { padding: 50px 0; }
    .quick-search-bar { margin-top: -20px; }
}
