/* ===== Cambodia Travel Guide - Main Stylesheet ===== */
:root {
    --primary: #0a4d8c;
    --primary-dark: #063566;
    --primary-light: #1a6bb5;
    --accent: #e89b2c;
    --accent-hover: #d18a1f;
    --text: #2c3e50;
    --text-light: #5a6a7a;
    --bg-light: #f7f9fc;
    --white: #ffffff;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .logo-text {
    font-family: 'Playfair Display', serif;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ===== Top Bar ===== */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.875rem;
    padding: 8px 0;
}
.top-bar a { color: #fff; }
.top-bar a:hover { color: var(--accent); }
.lang-select {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.85rem;
    cursor: pointer;
}
.lang-select option { color: #333; }

/* ===== Navbar ===== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 12px 0;
    transition: var(--transition);
}
.navbar.scrolled { padding: 8px 0; }
.navbar-brand img { max-height: 68px; width: auto; }
.nav-link {
    color: var(--primary-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px !important;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--accent);
}
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 220px;
}
.dropdown-item {
    padding: 8px 20px;
    font-size: 0.9rem;
    color: var(--text);
}
.dropdown-item:hover {
    background: #eef5fc;
    color: var(--primary);
}
.btn-nav {
    background: var(--accent);
    color: #fff !important;
    border-radius: 50px;
    padding: 8px 22px !important;
    font-weight: 500;
}
.btn-nav:hover { background: var(--accent-hover); color: #fff !important; }

/* ===== Buttons ===== */
.btn-primary-c {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}
.btn-primary-c:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10,77,140,0.3);
}
.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}
.btn-accent:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
}
.btn-outline-c {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 26px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}
.btn-outline-c:hover {
    background: #fff;
    color: var(--primary);
}

/* ===== Hero Home ===== */
.hero-home {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(6,53,102,0.75), rgba(10,77,140,0.55)), url('../images/bayon-siemreap.jpg') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}
.hero-home::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #fff, transparent);
}
.hero-content { position: relative; z-index: 2; }
.hero-home h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 3px 15px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}
.hero-home .lead {
    font-size: 1.25rem;
    max-width: 580px;
    margin-bottom: 30px;
    opacity: 0.95;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}
.hero-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* ===== Section Common ===== */
section { padding: 80px 0; }
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}
.section-header .line {
    width: 70px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto 16px;
    border-radius: 2px;
}
.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Stats Bar ===== */
.stats-bar {
    background: var(--primary);
    color: #fff;
    padding: 40px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stat-item { text-align: center; padding: 10px; }
.stat-item .number {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--accent);
}
.stat-item .label { font-size: 0.95rem; opacity: 0.9; }

/* ===== Featured Cards ===== */
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: none;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}
.feature-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 230px;
}
.feature-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.feature-card:hover .card-img-wrap img { transform: scale(1.08); }
.feature-card .card-body { padding: 24px; }
.feature-card h5 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.feature-card p { color: var(--text-light); font-size: 0.95rem; }
.feature-card .card-link {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
}
.feature-card .card-link:hover { color: var(--primary); }

/* ===== Why Choose ===== */
.why-item {
    text-align: center;
    padding: 30px 20px;
}
.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 18px;
}
.why-item h5 { color: var(--primary-dark); margin-bottom: 10px; }

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner h2 { font-size: 2.2rem; margin-bottom: 15px; }
.cta-banner p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 25px; }

/* ===== Page Hero (inner pages) ===== */
.page-hero {
    background: linear-gradient(135deg, rgba(6,53,102,0.85), rgba(10,77,140,0.7)), url('../images/banteay-srei-style.jpg') center/cover no-repeat;
    color: #fff;
    padding: 100px 0 70px;
    text-align: center;
}
.page-hero h1 { font-size: 2.8rem; margin-bottom: 12px; }
.page-hero p { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.breadcrumb-nav {
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.breadcrumb-nav a { color: rgba(255,255,255,0.8); }
.breadcrumb-nav a:hover { color: var(--accent); }
.breadcrumb-nav span { color: var(--accent); }

/* ===== Content Blocks ===== */
.content-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
}
.content-block h3, .content-block h4 {
    color: var(--primary);
    margin-bottom: 15px;
}
.content-block h3 i, .content-block h4 i { margin-right: 8px; }

/* ===== Activity / Tour Cards ===== */
.item-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    height: 100%;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}
.item-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}
.item-card h5 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 1.15rem;
}
.item-card .badge-custom {
    display: inline-block;
    background: #eef5fc;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

/* ===== Footer ===== */
footer {
    background: var(--primary-dark);
    color: #b0bec5;
    padding-top: 60px;
}
footer h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}
footer a { color: #b0bec5; }
footer a:hover { color: var(--accent); }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-bottom {
    background: #042844;
    padding: 18px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}
.footer-logo { max-height: 56px; margin-bottom: 15px; }

/* ===== Floating Buttons ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
.back-to-top {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
}
.back-to-top:hover { background: var(--primary-dark); }

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-home h1 { font-size: 2.5rem; }
    .navbar-brand img { max-height: 56px; }
    .stats-bar { margin-top: -40px; }
    .page-hero h1 { font-size: 2.2rem; }
}
@media (max-width: 767px) {
    .hero-home { min-height: 80vh; }
    .hero-home h1 { font-size: 2rem; }
    .hero-home .lead { font-size: 1.05rem; }
    section { padding: 55px 0; }
    .section-header h2 { font-size: 1.9rem; }
    .stat-item .number { font-size: 1.9rem; }
    .page-hero { padding: 80px 0 50px; }
}
@media (max-width: 575px) {
    .hero-home h1 { font-size: 1.75rem; }
    .btn-primary-c, .btn-accent, .btn-outline-c { padding: 10px 20px; font-size: 0.9rem; }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* ===== Floating ad banner (site-wide) ===== */
.ad-float-wrap {
  position: fixed;
  right: 16px;
  bottom: 90px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 260px;
  width: calc(100% - 32px);
}
.ad-float,
.ad-float.ad-yellow {
  background: linear-gradient(135deg, #f5d547 0%, #e6b800 100%);
  color: #1a1a1a;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  text-decoration: none;
  display: block;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid rgba(0,0,0,.08);
  position: relative;
}
.ad-float:hover,
.ad-float.ad-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  color: #1a1a1a;
}
.ad-float .ad-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .8;
  margin-bottom: 2px;
  color: #333;
}
.ad-float .ad-title {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.25;
  margin-bottom: 4px;
  color: #111;
}
.ad-float .ad-cta {
  font-size: .78rem;
  color: #0a4d8c;
  font-weight: 600;
}
.ad-float .ad-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: rgba(0,0,0,.5);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.ad-float .ad-close:hover { color: #000; }
@media (max-width: 576px) {
  .ad-float-wrap {
    right: 10px;
    left: 10px;
    max-width: none;
    bottom: 80px;
  }
  .ad-float .ad-title { font-size: .85rem; }
}


/* Clickable tourist map */
.map-link {
  -webkit-tap-highlight-color: rgba(10, 77, 140, 0.15);
  cursor: pointer;
}
.map-link img {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.map-link:active img,
.map-link:hover img {
  opacity: 0.92;
  transform: scale(0.995);
}
