/* ==========================================
   Guides Feature Stylesheet (guides.css)
   ========================================== */

/* Root and Base Theme Overrides (matching SLWoRLD) */
:root {
  --primary-color: #06314a;
  --secondary-color: #0b2e3a;
  --accent-color: #ff8c00;
  --accent-hover: #ffb347;
  --text-dark: #2c3e50;
  --text-muted: #7f8c8d;
  --bg-light: #f8f9fa;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
}

/* Page Header / Title Section */
.page-title {
  position: relative;
  min-height: 350px;
  padding: 120px 0 80px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.page-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(6, 49, 74, 0.8) 0%, rgba(11, 46, 58, 0.9) 100%);
  z-index: 1;
}

.page-title .container {
  position: relative;
  z-index: 2;
}

.page-title h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: capitalize;
}

.page-title p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.6;
}

/* Breadcrumbs styling */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
  font-size: 0.9rem;
}

.breadcrumbs ol li {
  display: flex;
  align-items: center;
}

.breadcrumbs ol li + li {
  padding-left: 8px;
}

.breadcrumbs ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs ol li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: 0.3s;
}

.breadcrumbs ol li a:hover {
  color: var(--accent-color);
}

.breadcrumbs ol li.current {
  color: #ffffff;
  font-weight: 600;
}

/* Navigation Overlays */
body.scrolled #header {
  background: rgba(6, 49, 74, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Filter Container */
.guides-filter-container {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  padding: 20px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(0,0,0,0.05);
}

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.guide-tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
  flex-wrap: wrap;
}

.guide-tab-btn {
  background: #f1f3f5;
  border: none;
  outline: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-tab-btn:hover {
  background: #e9ecef;
}

.guide-tab-btn.active {
  background: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.guides-search-box {
  position: relative;
  flex-grow: 1;
  max-width: 350px;
  min-width: 250px;
}

.guides-search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.guides-search-input {
  width: 100%;
  padding: 12px 15px 12px 42px;
  border-radius: 30px;
  border: 1.5px solid #e9ecef;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.guides-search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

/* Guide Cards Section */
.guides-grid-container {
  transition: all 0.4s ease;
}

.guide-card-wrapper {
  transition: all 0.4s ease;
}

.guide-card-wrapper.fade-out {
  opacity: 0;
  transform: scale(0.9);
  display: none;
}

.guide-card-wrapper.fade-in {
  opacity: 1;
  transform: scale(1);
  display: block;
}

.guide-card {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0,0,0,0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
}

.guide-image-container {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #eaeff2;
}

.guide-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.guide-card:hover .guide-image-container img {
  transform: scale(1.08);
}

/* Badges styling */
.guide-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  letter-spacing: 0.5px;
}

.guide-category-badge.national {
  background: linear-gradient(135deg, #10b981, #059669); /* emerald green */
}

.guide-category-badge.chauffeur {
  background: linear-gradient(135deg, #3b82f6, #2563eb); /* royal blue */
}

.guide-category-badge.area {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed); /* violet purple */
}

.guide-category-badge.default {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

.guide-location-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(6, 49, 74, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Guide content body */
.guide-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.guide-card-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  transition: color 0.3s;
}

.guide-card-content h4:hover {
  color: var(--accent-color);
}

.languages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.lang-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.guide-stats-row {
  display: flex;
  gap: 15px;
  border-top: 1px solid #f1f5f9;
  padding-top: 15px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.guide-stats-row span i {
  color: var(--accent-color);
  margin-right: 4px;
}

.guide-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-view-profile {
  flex-grow: 1;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-view-profile:hover {
  background: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.25);
}

.btn-contact-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: var(--primary-color);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-contact-icon:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Detailed Profile Section styling */
.guide-details-section {
  padding: 60px 0;
  background: #fcfcfd;
}

.profile-sidebar {
  position: sticky;
  top: 100px;
}

.profile-main-card {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.03);
  padding: 25px;
  text-align: center;
  margin-bottom: 25px;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  border: 4px solid #ffffff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  background: #eaeff2;
}

.profile-main-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.profile-main-card .category-pill {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 15px;
}

.verification-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.verification-status i {
  font-size: 1.1rem;
}

.quick-contact-list {
  text-align: left;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.quick-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.quick-contact-item i {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* Glassmorphism Booking Inquiry Form */
.booking-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 25px;
}

.booking-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.form-control, .form-select {
  border-radius: 8px !important;
  border: 1.5px solid #e2e8f0;
  padding: 12px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15) !important;
}

.btn-submit-inquiry {
  background: linear-gradient(135deg, var(--accent-color), #ffb347);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.25);
}

.btn-submit-inquiry:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.35);
  color: #ffffff;
}

/* Details area tabs & profile metadata */
.profile-content-card {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.03);
  padding: 30px;
  margin-bottom: 25px;
}

.profile-content-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.meta-box {
  background: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.meta-box-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
}

.meta-box-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
}

.profile-bio {
  line-height: 1.8;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.profile-bio p {
  margin-bottom: 15px;
}

/* Fallbacks and alerts */
.no-guides-found {
  text-align: center;
  padding: 40px;
}

.toast-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #10b981;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 1000;
  font-weight: 600;
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
}

@keyframes slideIn {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive details styling */
@media (max-width: 991px) {
  .profile-sidebar {
    position: static;
    margin-bottom: 30px;
  }
}
