/* ============================================
   VIRAT TOURS & TRAVEL - style.css
   ============================================ */

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

:root {
  --red: #c0392b;
  --red-dark: #922b21;
  --red-light: #fdf2f0;
  --green: #25D366;
  --text: #1a1a1a;
  --text2: #555;
  --text3: #999;
  --border: #e5e5e5;
  --bg: #f7f7f7;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--red);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar-brand {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-brand span { font-size: 11px; opacity: 0.85; font-weight: 400; display: block; }
.navbar-links { display: flex; gap: 4px; align-items: center; }
.navbar-links a {
  color: rgba(255,255,255,0.85);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  transition: background 0.2s;
}
.navbar-links a:hover, .navbar-links a.active { background: rgba(255,255,255,0.2); color: #fff; }
.navbar-links a.btn-login {
  background: #fff;
  color: var(--red);
  font-weight: 600;
  padding: 6px 14px;
}
.navbar-links a.btn-login:hover { background: #f0f0f0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.1s;
  width: 100%;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-white { background: #fff; color: var(--red); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-gray { background: #eee; color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 12px; width: auto; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}
.hero h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.hero p { font-size: 14px; opacity: 0.9; margin-bottom: 6px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0 20px; }
.hero-tag { background: rgba(255,255,255,0.2); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 20px; }
.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn { width: auto; }

/* ---- STATS BAR ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--red-dark);
  padding: 14px 0;
}
.stat { text-align: center; color: #fff; }
.stat-num { font-size: 20px; font-weight: 700; }
.stat-label { font-size: 10px; opacity: 0.85; margin-top: 2px; }

/* ---- PHONE BAR ---- */
.phone-bar {
  background: var(--red-light);
  border-bottom: 1px solid #f5c6c2;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  color: var(--red-dark);
  flex-wrap: wrap;
}
.phone-bar a { color: var(--red); font-weight: 600; }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

/* ---- SECTION ---- */
.section { padding: 28px 20px; }
.section-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.section-sub { font-size: 12px; color: var(--text2); margin-bottom: 18px; }

/* ---- GRIDS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }

/* ---- SERVICE CARD ---- */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: var(--shadow); }
.service-card .icon { font-size: 28px; margin-bottom: 8px; }
.service-card h3 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.service-card p { font-size: 11px; color: var(--text2); }

/* ---- PRICE CARD ---- */
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.price-card .badge { display: inline-block; background: var(--red-light); color: var(--red); font-size: 10px; padding: 2px 8px; border-radius: 20px; margin-bottom: 6px; font-weight: 600; }
.price-card h3 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.price-card .amount { font-size: 20px; font-weight: 700; color: var(--red); margin-bottom: 2px; }
.price-card .per { font-size: 11px; color: var(--text2); margin-bottom: 6px; }
.price-card .note { font-size: 10px; color: var(--text3); }

/* ---- FORMS ---- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: var(--text2); margin-bottom: 4px; font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { height: 80px; resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 0 auto;
}
.form-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.form-sub { font-size: 12px; color: var(--text2); margin-bottom: 16px; }
.divider { text-align: center; color: var(--text3); font-size: 12px; margin: 12px 0; }

/* ---- TABS ---- */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s;
}
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- REVIEW CARD ---- */
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.stars { color: #e67e22; font-size: 13px; margin-bottom: 6px; }
.review-card p { font-size: 12px; color: var(--text2); margin-bottom: 10px; line-height: 1.6; }
.reviewer { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.reviewer-name { font-size: 12px; font-weight: 600; }
.reviewer-date { font-size: 10px; color: var(--text3); }

/* ---- CONTACT CARD ---- */
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-card .icon { font-size: 24px; color: var(--red); margin-bottom: 8px; }
.contact-card h3 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.contact-card p { font-size: 12px; color: var(--text2); line-height: 1.6; }

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 500px; font-size: 12px; }
th { text-align: left; padding: 10px 12px; font-weight: 600; border-bottom: 2px solid var(--border); color: var(--text2); background: var(--bg); }
td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
tr:hover td { background: #fafafa; }

/* ---- STATUS BADGES ---- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-green { background: #eafaf1; color: #1e8449; }
.badge-blue { background: #eaf4fb; color: #1a5276; }
.badge-yellow { background: #fef9e7; color: #b7950b; }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-gray { background: #f0f0f0; color: #666; }

/* ---- DESTINATION CARD ---- */
.dest-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.dest-card:hover { box-shadow: var(--shadow); }
.dest-card .icon { font-size: 20px; color: var(--red); margin-bottom: 4px; }
.dest-card p { font-size: 12px; font-weight: 600; }

/* ---- FLEET ITEM ---- */
.fleet-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.fleet-item .icon { font-size: 22px; color: var(--red); margin-bottom: 4px; }
.fleet-item p { font-size: 11px; font-weight: 600; }
.fleet-item small { font-size: 10px; color: var(--text3); }

/* ---- ALERT ---- */
.alert { padding: 10px 14px; border-radius: 8px; font-size: 12px; margin-bottom: 12px; }
.alert-success { background: #eafaf1; color: #1e8449; border: 1px solid #a9dfbf; }
.alert-error { background: var(--red-light); color: var(--red); border: 1px solid #f5c6c2; }
.alert-info { background: #eaf4fb; color: #1a5276; border: 1px solid #a9cce3; }

/* ---- FOOTER ---- */
.footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 24px 20px;
  text-align: center;
  font-size: 12px;
  line-height: 2;
}
.footer .brand { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.footer a { color: #e74c3c; }

/* ---- LOADER ---- */
.loader { text-align: center; padding: 40px; color: var(--text3); font-size: 14px; }
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- EMPTY STATE ---- */
.empty { text-align: center; padding: 40px 20px; color: var(--text3); }
.empty .icon { font-size: 40px; margin-bottom: 10px; }
.empty p { font-size: 13px; }

/* ---- MODAL ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text3); line-height: 1; }

/* ---- INFO BOX ---- */
.info-box {
  background: var(--red-light);
  border: 1px solid #f5c6c2;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--red-dark);
  margin-top: 12px;
}

/* ---- GALLERY ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-item {
  background: #f0f0f0;
  border-radius: 8px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--text3);
  border: 1px solid var(--border);
  gap: 4px;
  overflow: hidden;
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.gallery-item span { font-size: 10px; color: var(--text3); position: relative; }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .navbar-links a:not(.btn-login):not(.active) { display: none; }
  .hero h1 { font-size: 20px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .form-row-2 { grid-template-columns: 1fr; }
  .phone-bar { font-size: 11px; gap: 10px; }
}

/* ---- ADMIN SPECIFIC ---- */
.admin-sidebar {
  width: 200px;
  background: #1a1a1a;
  min-height: calc(100vh - 56px);
  padding: 20px 0;
  position: fixed;
  top: 56px;
  left: 0;
}
.admin-sidebar a {
  display: block;
  padding: 10px 20px;
  color: #aaa;
  font-size: 13px;
  transition: background 0.2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: #333; color: #fff; }
.admin-content { margin-left: 200px; padding: 24px; }
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
}

/* ---- BOOKING HISTORY ---- */
.booking-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.booking-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.booking-id { font-size: 12px; color: var(--text3); }
.booking-service { font-size: 14px; font-weight: 600; }
.booking-details { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12px; color: var(--text2); margin-top: 8px; }
.booking-detail-item { display: flex; gap: 4px; align-items: flex-start; }

/* ---- ENHANCED REVIEWS PAGE ---- */
.reviews-header { margin-bottom: 24px; }
.rating-summary {
  margin-bottom: 24px;
  text-align: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, var(--red-light) 0%, #fff 100%);
  border: 2px solid var(--red-light);
}
.rating-display { padding: 8px 0; }
.rating-score { font-size: 48px; font-weight: 700; color: var(--red); }
.rating-stars { font-size: 20px; color: #e67e22; margin: 8px 0; letter-spacing: 4px; }
.rating-subtitle { font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.rating-badge { display: inline-block; background: #f0f0f0; color: var(--text2); font-size: 11px; padding: 6px 12px; border-radius: 20px; font-weight: 600; }

.reviews-section { margin-bottom: 28px; }
.review-form-section { margin-bottom: 24px; }

.review-card { transition: transform 0.2s, box-shadow 0.2s; }
.review-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.review-text { font-size: 12px; color: var(--text2); margin-bottom: 10px; line-height: 1.6; font-style: italic; }
.reviewer-info { display: flex; flex-direction: column; gap: 2px; }
.service-tag { display: inline-block; background: #f0f0f0; color: var(--text3); padding: 2px 6px; border-radius: 4px; font-size: 10px; }

/* ---- STAR RATING FORM ---- */
.star-rating { border: none; padding: 0; margin: 0; }
.star-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #ddd;
  padding: 4px;
  transition: color 0.2s, transform 0.1s;
  font-family: inherit;
}
.star-btn:hover, .star-btn:focus { color: #ffc107; transform: scale(1.2); outline: 2px solid #ffc107; outline-offset: 2px; border-radius: 4px; }

/* ---- ENHANCED FORM ELEMENTS ---- */
.form-group textarea {
  font-family: inherit;
  line-height: 1.5;
}
.char-count { display: block; font-size: 11px; color: var(--text3); margin-top: 4px; text-align: right; }

/* ---- TEXT UTILITIES ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ---- ACCESSIBLE FORM FEEDBACK ---- */
[aria-required="true"] { position: relative; }
input:invalid, textarea:invalid { border-color: #e74c3c; }
input:valid, textarea:valid { border-color: #27ae60; }

/* ---- ANIMATION IMPROVEMENTS ---- */
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.review-card { animation: slideIn 0.3s ease-out; }

/* ---- FOOTER ADDRESS ---- */
address { font-style: normal; }
address p { margin: 4px 0; }
