/* Dubai Metro Section - GoDubai.com */
:root {
  --teal: #02607E;
  --teal-dark: #024D64;
  --teal-light: #E8F4F8;
  --red-line: #E53935;
  --green-line: #43A047;
  --orange: #F57C00;
  --bg: #f5f5f5;
  --card-bg: #fff;
  --text: #222;
  --text-light: #666;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
}

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

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
body.nav-open { overflow: hidden; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Topbar */
.topbar { background: var(--teal-dark); color: #fff; font-size: 13px; }
.topbar-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 6px 20px; }
.topbar-links a { color: rgba(255,255,255,.85); margin-right: 16px; font-size: 12px; }
.topbar-links a:hover, .topbar-links a.active { color: #fff; text-decoration: none; }
.topbar-social { display: flex; gap: 12px; align-items: center; }
.topbar-social a { opacity: .85; }
.topbar-social a:hover { opacity: 1; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #e0e0e0; }
.header-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; padding: 10px 20px; min-height: 56px; gap: 16px; }
.logo-link { flex-shrink: 0; }
.gd-logo-img { width: auto; max-width: 200px; display: block; }
.header-title { font-size: 20px; font-weight: 700; color: var(--teal-dark); flex: 1; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--teal-dark); margin: 5px 0; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Section Nav */
.section-nav { background: var(--teal); }
.section-nav-inner { max-width: 1280px; margin: 0 auto; display: flex; padding: 0 20px; gap: 0; overflow-x: auto; }
.section-nav-inner a { color: rgba(255,255,255,.85); padding: 12px 18px; font-size: 14px; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; transition: .2s; }
.section-nav-inner a:hover, .section-nav-inner a.active { color: #fff; background: rgba(255,255,255,.1); border-bottom-color: #fff; text-decoration: none; }

/* Mobile Nav */
.mobile-nav { display: none; position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: #fff; z-index: 1000; overflow-y: auto; transition: right .3s; box-shadow: -2px 0 10px rgba(0,0,0,.2); }
.mobile-nav.open { display: block; right: 0; }
.mobile-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 999; }
.mobile-nav.open ~ .mobile-overlay { display: block; }
.mobile-nav-section { padding: 16px 20px; border-bottom: 1px solid #eee; }
.mobile-nav-title { font-size: 12px; text-transform: uppercase; color: var(--text-light); font-weight: 700; margin-bottom: 8px; letter-spacing: .5px; }
.mobile-nav-section a { display: block; padding: 10px 0; color: var(--text); font-size: 15px; border-bottom: 1px solid #f5f5f5; }
.mobile-nav-section a:hover { color: var(--teal); text-decoration: none; }

/* Main Content */
.main-content { min-height: 60vh; }
.container { max-width: 1280px; margin: 0 auto; padding: 24px 20px; }

/* Breadcrumbs */
.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.breadcrumb a { color: var(--teal); }
.breadcrumb span { margin: 0 6px; }

/* Section Titles */
.section-title { font-size: 28px; font-weight: 700; color: var(--teal-dark); margin-bottom: 8px; }
.section-subtitle { font-size: 16px; color: var(--text-light); margin-bottom: 24px; }

/* Cards */
.card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 16px; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.card-text { font-size: 14px; color: var(--text-light); line-height: 1.5; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Hero / Overview Banner */
.metro-hero { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; border-radius: var(--radius); padding: 48px 40px; margin-bottom: 32px; position: relative; overflow: hidden; }
.metro-hero h1 { font-size: 36px; margin-bottom: 12px; }
.metro-hero p { font-size: 18px; opacity: .9; max-width: 700px; }

/* Quick Stats */
.quick-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--card-bg); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.stat-number { font-size: 32px; font-weight: 800; color: var(--teal); }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* Line Badge */
.line-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; color: #fff; }
.line-red { background: var(--red-line); }
.line-green { background: var(--green-line); }
.line-blue { background: #1E88E5; }

/* Station List */
.station-list { margin-bottom: 32px; }
.station-item { display: flex; align-items: flex-start; padding: 16px; background: var(--card-bg); border-radius: var(--radius); margin-bottom: 8px; box-shadow: var(--shadow); gap: 16px; }
.station-code { background: var(--teal); color: #fff; font-weight: 700; font-size: 14px; padding: 6px 10px; border-radius: 6px; flex-shrink: 0; min-width: 48px; text-align: center; }
.station-code.red { background: var(--red-line); }
.station-code.green { background: var(--green-line); }
.station-info h3 { font-size: 16px; margin-bottom: 4px; }
.station-info p { font-size: 13px; color: var(--text-light); }
.station-meta { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.station-tag { font-size: 11px; background: var(--teal-light); color: var(--teal); padding: 2px 8px; border-radius: 10px; }

/* Fare Table */
.fare-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.fare-table th { background: var(--teal); color: #fff; padding: 12px 16px; text-align: left; font-size: 14px; }
.fare-table td { padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 14px; }
.fare-table tr:hover td { background: var(--teal-light); }

/* Info Box */
.info-box { background: var(--teal-light); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin-bottom: 24px; }
.info-box h4 { color: var(--teal-dark); margin-bottom: 6px; }
.info-box p, .info-box li { font-size: 14px; color: var(--text); }

/* Nol Card Types */
.nol-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 32px; }
.nol-card { border-radius: var(--radius); padding: 24px; color: #fff; box-shadow: var(--shadow); }
.nol-card h3 { font-size: 20px; margin-bottom: 8px; }
.nol-card p { font-size: 14px; opacity: .9; }
.nol-silver { background: linear-gradient(135deg, #757575, #9E9E9E); }
.nol-gold { background: linear-gradient(135deg, #F9A825, #FDD835); color: #333; }
.nol-gold p { color: #555; }
.nol-blue { background: linear-gradient(135deg, #1565C0, #42A5F5); }
.nol-red { background: linear-gradient(135deg, #C62828, #EF5350); }

/* Schedule */
.schedule-block { background: var(--card-bg); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.schedule-block h3 { font-size: 18px; margin-bottom: 12px; color: var(--teal-dark); }
.schedule-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.schedule-row:last-child { border-bottom: none; }
.schedule-label { font-weight: 600; }

/* Feeder Bus */
.bus-route { background: var(--card-bg); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; }
.bus-code { background: var(--orange); color: #fff; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 8px; min-width: 52px; text-align: center; }
.bus-info h4 { font-size: 15px; margin-bottom: 2px; }
.bus-info p { font-size: 13px; color: var(--text-light); }

/* Map placeholder */
.map-container { background: var(--card-bg); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; min-height: 400px; }

/* Tabs */
.tab-bar { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid #eee; overflow-x: auto; }
.tab-btn { padding: 12px 24px; font-size: 14px; font-weight: 600; border: none; background: none; cursor: pointer; color: var(--text-light); border-bottom: 3px solid transparent; transition: .2s; white-space: nowrap; }
.tab-btn:hover { color: var(--teal); }
.tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Search/Filter */
.filter-bar { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.filter-bar input, .filter-bar select { padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }
.filter-bar input { flex: 1; min-width: 200px; }
.filter-bar select { min-width: 160px; }
.btn { display: inline-block; padding: 10px 20px; background: var(--teal); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s; }
.btn:hover { background: var(--teal-dark); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }

/* Content Sections */
.content-section { margin-bottom: 40px; }
.content-section h2 { font-size: 24px; font-weight: 700; color: var(--teal-dark); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--teal-light); }
.content-section p { font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.content-section ul { margin: 12px 0 12px 20px; }
.content-section li { font-size: 14px; margin-bottom: 6px; line-height: 1.5; }

/* Two-column layout */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.sidebar-widget { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.sidebar-widget h3 { font-size: 16px; font-weight: 700; color: var(--teal-dark); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--teal-light); }

/* Footer */
.site-footer { background: var(--teal-dark); color: rgba(255,255,255,.85); border-radius: 0 0 10px 10px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 40px 20px 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); font-size: 13px; padding: 3px 0; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-social a { display: block; padding: 4px 0; }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.15); padding: 16px 0; line-height: 1.6; }
.footer-disclaimer a { color: rgba(255,255,255,.7); }
.footer-bottom { text-align: center; padding-top: 12px; font-size: 13px; color: rgba(255,255,255,.6); }

/* Back to top */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; border: none; font-size: 18px; cursor: pointer; opacity: 0; visibility: hidden; transition: .3s; box-shadow: 0 2px 8px rgba(0,0,0,.2); z-index: 900; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--teal-dark); }

/* Cookie Banner */
.cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #333; color: #fff; z-index: 9999; }
.cookie-inner { max-width: 1280px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-inner p { font-size: 13px; margin: 0; }
.cookie-inner a { color: #8ED8F8; }
.cookie-inner button { background: var(--teal); color: #fff; border: none; padding: 8px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; white-space: nowrap; }

/* Interchange badge */
.interchange-badge { display: inline-block; background: #FF9800; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-left: 6px; font-weight: 600; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 6px; font-size: 14px; }
.pagination a { background: var(--card-bg); color: var(--teal); box-shadow: var(--shadow); }
.pagination a:hover { background: var(--teal); color: #fff; text-decoration: none; }
.pagination span.current { background: var(--teal); color: #fff; }

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .topbar-links { display: none; }
  .topbar-inner { padding: 6px 12px; }
  .header-inner { padding: 8px 12px; min-height: 48px; }
  .gd-logo-img { max-width: 160px; }
  .header-title { font-size: 16px; }
  .hamburger { display: block; }
  .section-nav-inner { padding: 0 12px; }
  .section-nav-inner a { padding: 10px 14px; font-size: 13px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .metro-hero { padding: 32px 24px; }
  .metro-hero h1 { font-size: 28px; }
  .nol-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .topbar-social { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 16px 12px; }
  .metro-hero { padding: 24px 16px; }
  .metro-hero h1 { font-size: 22px; }
  .metro-hero p { font-size: 15px; }
  .stat-number { font-size: 24px; }
  .section-title { font-size: 22px; }
  .station-item { flex-direction: column; }
  .bus-route { flex-direction: column; align-items: flex-start; }
  .filter-bar { flex-direction: column; }
  .filter-bar input, .filter-bar select { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .nol-cards { grid-template-columns: 1fr; }
  .fare-table { font-size: 12px; }
  .fare-table th, .fare-table td { padding: 8px 10px; }
  .tab-btn { padding: 10px 16px; font-size: 13px; }
  .cookie-inner { flex-direction: column; text-align: center; }
}
