/* ===== Jogeshwari.in - Travel Guide Stylesheet ===== */

/* --- CSS Variables & Reset --- */
:root {
  --primary: #8B4513;
  --primary-light: #A0522D;
  --primary-dark: #6B3410;
  --accent: #D4A574;
  --accent-light: #E8C9A0;
  --text-dark: #2C2C2C;
  --text-medium: #555;
  --text-light: #888;
  --bg-white: #FFFFFF;
  --bg-light: #F8F6F3;
  --bg-warm: #F5F0EB;
  --bg-card: #FAFAF8;
  --border: #E8E2DA;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --header-height: 72px;
  --font-primary: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.3;
}
h1 { font-size: 2.6rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.4rem; margin-bottom: 8px; }
h4 { font-size: 1.15rem; margin-bottom: 6px; }
p { margin-bottom: 16px; color: var(--text-medium); }

.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-top: 8px;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow); }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.logo:hover { color: var(--primary-dark); }
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  transition: all 0.2s;
}
.nav a:hover, .nav a.active {
  color: var(--primary);
  background: var(--bg-warm);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 8px;
}

/* --- Hero Section --- */
.hero {
  margin-top: var(--header-height);
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-warm);
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,44,44,0.75) 0%, rgba(44,44,44,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
  color: white;
}
.hero-content h1 {
  font-size: 3.2rem;
  color: white;
  margin-bottom: 12px;
  max-width: 700px;
}
.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139,69,19,0.3);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: white;
  color: var(--text-dark);
  border-color: white;
}
.btn-accent {
  background: var(--accent);
  color: var(--text-dark);
}
.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Section Spacing --- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-warm { background: var(--bg-warm); }

/* --- Quick Facts --- */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: -40px auto 0;
  max-width: var(--max-width);
  padding: 0 24px;
  position: relative;
  z-index: 3;
}
.fact-card {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.fact-card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.fact-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 4px; }
.fact-card p { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); margin: 0; }

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card-body h3 a { color: var(--text-dark); }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 12px; }
.card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.card-meta span { display: flex; align-items: center; gap: 4px; }

/* --- Page Banner (inner pages) --- */
.page-banner {
  margin-top: var(--header-height);
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,44,44,0.7) 0%, rgba(44,44,44,0.25) 100%);
}
.page-banner .banner-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.page-banner h1 { color: white; font-size: 2.8rem; margin-bottom: 8px; }
.page-banner .breadcrumb { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.page-banner .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-banner .breadcrumb a:hover { color: white; }

/* --- Content Layout --- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 60px 0;
}
.content-main { min-width: 0; }
.content-main h2 { margin-top: 48px; }
.content-main h2:first-child { margin-top: 0; }
.content-main h3 { margin-top: 32px; }
.content-main ul, .content-main ol { margin-bottom: 16px; padding-left: 24px; }
.content-main li { margin-bottom: 8px; color: var(--text-medium); }
.content-main ul li { list-style: disc; }
.content-main ol li { list-style: decimal; }
.content-main figure { margin: 24px 0; }
.content-main figure img { border-radius: var(--radius); width: 100%; }
.content-main figcaption { text-align: center; font-size: 0.85rem; color: var(--text-light); margin-top: 8px; font-style: italic; }

.sidebar-card {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.sidebar-card h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.sidebar-card ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { color: var(--text-medium); display: block; }
.sidebar-card ul li a:hover { color: var(--primary); padding-left: 4px; }

/* --- Info Box --- */
.info-box {
  background: var(--bg-warm);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.info-box h4 { color: var(--primary); margin-bottom: 8px; }
.info-box p, .info-box li { font-size: 0.95rem; }
.info-box ul { margin-bottom: 0; }

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* --- Table Styles --- */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}
.content-table th, .content-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.content-table th {
  background: var(--bg-warm);
  font-weight: 600;
  color: var(--text-dark);
}
.content-table tr:hover td { background: var(--bg-light); }

/* --- Blog List --- */
.blog-list { display: flex; flex-direction: column; gap: 32px; }
.blog-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.blog-card:hover { box-shadow: var(--shadow-hover); }
.blog-card img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}
.blog-card-content { padding: 24px 24px 24px 0; }
.blog-card-content .tag {
  display: inline-block;
  background: var(--bg-warm);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.blog-card-content h3 { font-size: 1.3rem; }
.blog-card-content .meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 8px; }

/* --- Itinerary Timeline --- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--accent);
}
.timeline-item {
  position: relative;
  padding: 0 0 32px 24px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--accent-light);
}
.timeline-item .time {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* --- Newsletter / CTA --- */
.cta-section {
  background: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 60px 24px;
}
.cta-section h2 { color: white; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.cta-section .btn-primary { background: var(--accent); color: var(--text-dark); }
.cta-section .btn-primary:hover { background: var(--accent-light); }

/* --- Footer --- */
.footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer h4 {
  color: white;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.footer p, .footer a { font-size: 0.9rem; }
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: var(--accent); }
.footer ul li { margin-bottom: 8px; }
.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand .logo:hover { color: white; }
.footer-brand p { line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { color: var(--accent-light); }

.cookie-notice {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-dark);
  color: rgba(255,255,255,0.9);
  padding: 16px 24px;
  z-index: 9999;
  font-size: 0.9rem;
  text-align: center;
}
.cookie-notice.show { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookie-notice p { margin: 0; color: rgba(255,255,255,0.9); }
.cookie-notice .btn { font-size: 0.85rem; padding: 8px 20px; background: var(--accent); color: var(--text-dark); }
.cookie-notice .btn:hover { background: var(--accent-light); }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* --- FAQ Schema (styled) --- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: var(--bg-light);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
}
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.3s;
}
.faq-question.open::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}
.faq-answer.open {
  padding: 16px 20px;
  max-height: 500px;
}

/* --- Map --- */
.map-container {
  width: 100%;
  height: 400px;
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-light);
  font-size: 1.1rem;
}
.map-placeholder .icon { font-size: 3rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .sidebar .sidebar-card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .page-banner h1 { font-size: 2rem; }
  .page-banner { height: 240px; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px; }
  .menu-toggle { display: block; }

  .cards-grid { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card img { min-height: 200px; max-height: 240px; }
  .blog-card-content { padding: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .sidebar .sidebar-card { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 60vh; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .quick-facts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .quick-facts .fact-card { padding: 16px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
