/* TourSpace — Professional Travel Platform */

:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --text: #334155;
  --text-muted: #64748b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --card-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --radius: 12px;
  --transition: 0.25s ease;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--light);
  line-height: 1.6;
}

/* Navbar */
.navbar-tourspace {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}

.navbar-tourspace .navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.navbar-tourspace .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: var(--transition);
}

.navbar-tourspace .nav-link:hover,
.navbar-tourspace .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 58, 138, 0.75) 100%),
    url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1920&q=80') center/cover no-repeat;
  color: #fff;
  padding: 6rem 0 4rem;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-section .lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.92;
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
}

.hero-stats .stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
}

.hero-stats .stat span {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Hero banner slider */
.hero-banner-wrap {
  position: relative;
}

.hero-banner-carousel {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-banner-carousel .carousel-inner {
  border-radius: var(--radius);
}

.hero-banner-slide {
  position: relative;
  height: 420px;
}

.hero-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
}

.hero-banner-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-banner-slide h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.hero-banner-slide-location {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.hero-banner-slide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-banner-slide-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.hero-banner-slide-price small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.75;
}

.hero-banner-carousel .carousel-indicators {
  margin-bottom: 0.75rem;
}

.hero-banner-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.45);
}

.hero-banner-carousel .carousel-indicators .active {
  background-color: var(--accent);
}

.hero-banner-carousel .carousel-control-prev,
.hero-banner-carousel .carousel-control-next {
  width: 12%;
  opacity: 0.85;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.35);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 320px;
  max-height: 420px;
}

.banner-card-active {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

.banner-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

.banner-switch .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .badge-label {
  background: rgba(13, 110, 253, 0.1);
  color: var(--primary);
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-header h2 {
  font-weight: 800;
  color: var(--dark);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
}

/* Tour cards */
.tour-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.tour-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.tour-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tour-card:hover .tour-card-img-wrap img {
  transform: scale(1.06);
}

.tour-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
}

.tour-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tour-card-location {
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.tour-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.tour-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.tour-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tour-card-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.tour-card-price small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.tour-card-duration {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}

.empty-state i {
  font-size: 3.5rem;
  color: var(--border);
  margin-bottom: 1rem;
}

/* Detail page */
.detail-hero {
  position: relative;
  height: 50vh;
  min-height: 320px;
  max-height: 480px;
  overflow: hidden;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 2rem 0 3rem;
  color: #fff;
}

.detail-hero-overlay h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
}

.detail-sidebar {
  position: sticky;
  top: 100px;
}

.booking-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.booking-card .price-display {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
}

.detail-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.detail-list.excluded li::before {
  content: '✕';
  color: #ef4444;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--light);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-size: 0.875rem;
  margin: 0.25rem;
}

/* Admin panel */
.admin-layout {
  min-height: 100vh;
  display: flex;
}

.admin-sidebar {
  width: 260px;
  background: var(--dark);
  color: #fff;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1040;
  transform: translateX(-100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

.admin-sidebar.show {
  transform: translateX(0);
}

.admin-sidebar-brand {
  padding: 1.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-left-color: var(--accent);
}

.admin-main {
  flex: 1;
  margin-left: 0;
  min-height: 100vh;
  background: var(--light);
}

.admin-topbar {
  background: #fff;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.admin-content {
  padding: 1.5rem;
}

@media (min-width: 992px) {
  .admin-sidebar {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 260px;
  }

  .admin-sidebar-overlay {
    display: none !important;
  }
}

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1035;
}

.admin-sidebar-overlay.show {
  display: block;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
}

.admin-table-wrap {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.admin-table-wrap .table {
  margin-bottom: 0;
}

.admin-table-wrap .table th {
  background: var(--light);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-bottom-width: 1px;
  white-space: nowrap;
}

.admin-table-wrap .table td {
  vertical-align: middle;
}

.tour-thumb {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.form-section-title {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.login-card {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--card-shadow-hover);
  border: 1px solid var(--border);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a8a 100%);
  padding: 2rem 1rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--dark-soft) 0%, var(--dark) 100%);
  color: rgba(255, 255, 255, 0.82);
  padding: 4rem 0 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-main {
  padding-bottom: 2.5rem;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-bottom: 1rem;
}

.site-footer-brand i {
  color: var(--accent);
  font-size: 1.5rem;
}

.site-footer-brand:hover {
  color: #fff;
}

.site-footer-tagline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.site-footer-social {
  display: flex;
  gap: 0.65rem;
}

.site-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
}

.site-footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.site-footer-heading {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.site-footer-links,
.site-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-links li + li,
.site-footer-contact li + li {
  margin-top: 0.65rem;
}

.site-footer-links a,
.site-footer-contact a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
}

.site-footer-links a:hover,
.site-footer-contact a:hover {
  color: #fff;
}

.site-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.site-footer-contact i {
  color: var(--accent);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.site-footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.site-footer-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
}

.site-footer-trust i {
  color: var(--accent);
}

.site-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.site-footer-bottom p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.site-footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.site-footer-legal a:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .site-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

/* Toast notification */
.toast-container-custom {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}

/* Features section */
.feature-box {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--primary);
  box-shadow: var(--card-shadow);
}

.feature-box i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Status & panels */
.status-badge {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.panel-sidebar-admin {
  background: #0c1222 !important;
}

.panel-sidebar-vendor {
  background: var(--dark-soft) !important;
}

.approval-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 100%;
}

.approval-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.vendor-detail-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.vendor-detail-card p {
  font-size: 0.95rem;
}

.vendor-detail-card a {
  color: inherit;
  text-decoration: none;
}

.vendor-detail-card a:hover {
  color: var(--accent);
}

.rich-editor {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.description-field {
  display: flow-root;
  margin-bottom: 0.5rem;
}

.description-editor-host {
  display: block;
  width: 100%;
  clear: both;
}

.description-field .ql-toolbar.ql-snow {
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #f8fafc;
  font-family: inherit;
}

.description-field .ql-container.ql-snow {
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  height: auto !important;
  min-height: 220px;
  font-size: 1rem;
  font-family: inherit;
}

.description-field .ql-editor {
  min-height: 220px;
  max-height: 420px;
  overflow-y: auto;
}

.description-field .ql-tooltip {
  z-index: 1050;
}

.rich-editor .ql-toolbar {
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.rich-editor .ql-container {
  border: 0;
  font-size: 1rem;
  min-height: 220px;
}

.rich-editor .ql-editor {
  min-height: 220px;
}

.rich-text-content {
  line-height: 1.7;
  color: var(--text-muted, #64748b);
}

.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4 {
  color: var(--dark, #0f172a);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.rich-text-content ul,
.rich-text-content ol {
  padding-left: 1.25rem;
}

.rich-text-content a {
  color: var(--accent);
}

.tour-card-badge-alt {
  left: auto;
  right: 1rem;
  background: #ef4444;
}

.booking-card-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--card-shadow);
}

.nav-portal-links .btn {
  white-space: nowrap;
}

.fee-notice {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.pending-count-badge {
  font-size: 0.65rem;
  min-width: 1.25rem;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }

  .hero-section .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-banner-slide {
    height: 300px;
  }

  .hero-banner-wrap {
    margin-top: 2rem;
  }

  .detail-sidebar {
    position: static;
    margin-top: 2rem;
  }

  .admin-table-wrap {
    overflow-x: auto;
  }
}
