/* ==========================================================================
   dp_module — Holiday Packages Module Stylesheet
   All classes prefixed  .dp-  to prevent conflicts with the parent project.
   ========================================================================== */

/* --- Module-wide colour palette --- */
:root {
  --dp-gold:      #D4A017;   /* Country card ribbon */
  --dp-gold-dark: #B8860B;
  --dp-navy:      #1E2A5E;
  --dp-primary:   #3B82F6;   /* Package Overview */
  --dp-orange:    #F97316;   /* Routing */
  --dp-green:     #22C55E;   /* Day Wise Itinerary / Inclusions */
  --dp-dark-navy: #1E3A8A;   /* Booking Procedure */
  --dp-red:       #EF4444;   /* Cancellation Policy */
  --dp-purple:    #8B5CF6;   /* Please Note */
  --dp-teal:      #14B8A6;   /* Must Carry */
  --dp-border:    #E5E7EB;
  --dp-muted:     #6B7280;
  --dp-text:      #1F2937;
  --dp-cream:     #FFFBF2;
  --dp-radius:    12px;
  --dp-shadow:    0 4px 18px rgba(30, 42, 94, 0.10);
  --dp-shadow-hover: 0 8px 28px rgba(30, 42, 94, 0.18);
}

/* =========================================================================
   COUNTRIES PAGE — Hero
   ========================================================================= */
.dp-hero {
  background: linear-gradient(to bottom, #0f1933 0%, #1e2a5e 100%);
  padding: 60px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1400');
  background-size: cover; background-position: center;
  opacity: 0.18;
}
.dp-hero-inner { position: relative; z-index: 2; }
.dp-hero h1 {
  color: #fff; font-size: clamp(1.8rem, 4vw, 3rem);
  font-family: 'Poppins', sans-serif; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 10px;
}
.dp-hero p {
  color: rgba(255,255,255,0.8); font-size: 1rem; margin: 0 0 28px;
}
.dp-search-bar {
  max-width: 520px; margin: 0 auto;
  background: #fff; border-radius: 50px; padding: 4px 4px 4px 22px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.dp-search-bar input {
  flex: 1; border: none; outline: none;
  font-size: 0.95rem; font-family: 'Inter', sans-serif; background: transparent;
}
.dp-search-bar button {
  background: var(--dp-navy); color: #fff; border: none;
  border-radius: 50px; padding: 10px 22px;
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
}

/* =========================================================================
   COUNTRY CARDS GRID
   ========================================================================= */
.dp-countries-section {
  background: #f9fafc; padding: 48px 20px;
}
.dp-container {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.dp-countries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
@media (max-width: 900px) { .dp-countries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dp-countries-grid { grid-template-columns: 1fr; } }

.dp-country-card {
  background: #fff; border-radius: var(--dp-radius);
  overflow: hidden; box-shadow: var(--dp-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.dp-country-card:hover {
  transform: translateY(-4px); box-shadow: var(--dp-shadow-hover);
}
.dp-card-img-top {
  width: 100%; height: 180px; object-fit: cover; display: block;
}
.dp-card-ribbon {
  background: var(--dp-gold);
  padding: 10px 16px; text-align: center;
}
.dp-card-ribbon span {
  color: #fff; font-weight: 700; font-size: 1rem;
  font-family: 'Poppins', sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
}
.dp-card-img-bottom {
  width: 100%; height: 100px; object-fit: cover; display: block;
}
.dp-card-action {
  padding: 14px 16px 18px; text-align: center;
}
.dp-btn-readmore {
  display: inline-block; background: var(--dp-navy); color: #fff;
  border-radius: 50px; padding: 9px 26px; font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; transition: background 0.15s;
}
.dp-btn-readmore:hover { background: #16206e; color: #fff; }

/* =========================================================================
   LISTING PAGE — Hero Banner
   ========================================================================= */
.dp-listing-hero {
  height: 220px; position: relative; overflow: hidden; background: var(--dp-navy);
}
.dp-listing-hero img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.55;
}
.dp-listing-hero-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.dp-listing-hero-label h1 {
  color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-family: 'Poppins', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.dp-listing-hero-label p {
  color: rgba(255,255,255,0.85); font-size: 0.92rem; margin: 6px 0 0;
}

/* =========================================================================
   FILTER PILLS
   ========================================================================= */
.dp-filters-section {
  background: #fff; border-bottom: 1px solid var(--dp-border);
  position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.dp-filters-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; padding: 14px 20px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.dp-filters-inner::-webkit-scrollbar { display: none; }

.dp-filter-pill {
  white-space: nowrap; display: inline-block;
  padding: 8px 18px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  background: #F3F4F6; color: #374151;
  text-decoration: none; border: 1.5px solid transparent;
  transition: all 0.15s ease; cursor: pointer;
}
.dp-filter-pill:hover { background: var(--dp-navy); color: #fff; }
.dp-filter-pill.active {
  background: var(--dp-navy); color: #fff;
  border-color: var(--dp-navy);
}

/* =========================================================================
   PACKAGES GRID (listing page)
   ========================================================================= */
.dp-listing-section { background: #f9fafc; padding: 32px 20px 48px; }
.dp-results-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.dp-results-bar span { font-size: 0.88rem; color: var(--dp-muted); }
.dp-results-bar select {
  border: 1.5px solid var(--dp-border); border-radius: 8px;
  padding: 7px 12px; font-size: 0.88rem; font-family: 'Inter', sans-serif;
}

.dp-packages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .dp-packages-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .dp-packages-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .dp-packages-grid { grid-template-columns: 1fr; } }

.dp-pkg-card {
  background: #fff; border-radius: var(--dp-radius);
  overflow: hidden; box-shadow: var(--dp-shadow);
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.dp-pkg-card:hover { transform: translateY(-3px); box-shadow: var(--dp-shadow-hover); }
.dp-pkg-card-thumb {
  width: 100%; aspect-ratio: 4/3; overflow: hidden; position: relative;
}
.dp-pkg-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.dp-pkg-card:hover .dp-pkg-card-thumb img { transform: scale(1.06); }
.dp-pkg-card-body { padding: 13px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.dp-pkg-card-title {
  font-weight: 700; font-size: 0.9rem; color: var(--dp-text);
  margin: 0 0 6px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dp-pkg-card-duration {
  font-size: 0.76rem; color: var(--dp-muted); margin-bottom: 8px;
}
.dp-pkg-card-price {
  margin-top: auto; padding-top: 8px;
  border-top: 1px dashed var(--dp-border);
}
.dp-pkg-card-price .dp-strike {
  font-size: 0.76rem; color: var(--dp-muted); text-decoration: line-through;
}
.dp-pkg-card-price .dp-amount {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 1.05rem; color: var(--dp-navy);
}
.dp-pkg-card-price .dp-amount small {
  font-size: 0.68rem; font-weight: 400; color: var(--dp-muted);
}
.dp-gst-note { font-size: 0.68rem; color: var(--dp-muted); margin-top: 1px; }

/* =========================================================================
   DETAIL PAGE — General Layout
   ========================================================================= */
.dp-detail-page { background: #f9fafc; }

.dp-detail-header { padding: 24px 0 0; }
.dp-detail-breadcrumb {
  font-size: 0.8rem; color: var(--dp-muted); margin-bottom: 10px;
}
.dp-detail-breadcrumb a { color: var(--dp-primary); text-decoration: none; }
.dp-detail-breadcrumb a:hover { text-decoration: underline; }
.dp-detail-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem); font-family: 'Poppins', sans-serif;
  font-weight: 700; color: var(--dp-text); margin: 0 0 10px;
}
.dp-detail-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.dp-cat-tag {
  background: var(--dp-navy); color: #fff;
  border-radius: 50px; padding: 4px 14px; font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}

/* =========================================================================
   IMAGE CAROUSEL
   ========================================================================= */
.dp-carousel-wrapper {
  position: relative; border-radius: var(--dp-radius);
  overflow: hidden; background: #000; margin-bottom: 16px;
}
.dp-carousel-track {
  display: flex; transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.dp-carousel-slide {
  min-width: 100%; aspect-ratio: 16/7; overflow: hidden;
}
.dp-carousel-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.dp-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.45); color: #fff; border: none;
  border-radius: 50%; width: 42px; height: 42px; font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; z-index: 5;
}
.dp-carousel-btn:hover { background: rgba(0,0,0,0.72); }
.dp-carousel-btn.prev { left: 12px; }
.dp-carousel-btn.next { right: 12px; }
.dp-carousel-counter {
  position: absolute; bottom: 10px; right: 14px;
  background: rgba(0,0,0,0.5); color: #fff;
  border-radius: 50px; padding: 3px 10px; font-size: 0.78rem;
}

/* Thumbnail strip */
.dp-thumb-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px;
  scrollbar-width: thin;
}
.dp-thumb {
  min-width: 72px; height: 50px; border-radius: 6px; overflow: hidden;
  cursor: pointer; border: 2.5px solid transparent; transition: border-color 0.15s;
}
.dp-thumb.active { border-color: var(--dp-navy); }
.dp-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================================
   DETAIL PAGE — Sticky Tabs
   ========================================================================= */
.dp-tabs-sticky {
  position: sticky; top: 0; z-index: 40; background: #fff;
  border-bottom: 1px solid var(--dp-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.dp-tabs-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; overflow-x: auto; padding: 0 20px;
  scrollbar-width: none;
}
.dp-tabs-inner::-webkit-scrollbar { display: none; }

.dp-tab-btn {
  white-space: nowrap; border: none; background: transparent;
  padding: 14px 16px; font-weight: 600; font-size: 0.82rem;
  color: var(--dp-muted); cursor: pointer; border-bottom: 3px solid transparent;
  transition: all 0.15s; font-family: 'Inter', sans-serif;
}
.dp-tab-btn:hover { color: var(--dp-text); }
.dp-tab-btn.active { color: var(--dp-primary); border-bottom-color: var(--dp-primary); }

/* =========================================================================
   DETAIL PAGE — Content sections with coloured headers
   ========================================================================= */
.dp-content-wrap { padding: 32px 20px 120px; }
.dp-detail-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start;
}
@media (max-width: 900px) { .dp-detail-grid { grid-template-columns: 1fr; } }

.dp-section { margin-bottom: 28px; }
.dp-section-head {
  display: flex; align-items: center; gap: 10px;
  border-radius: 6px 6px 0 0; padding: 10px 18px;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.98rem;
  color: #fff; margin-bottom: 0;
}
.dp-section-body {
  background: #fff; border: 1px solid var(--dp-border); border-top: none;
  border-radius: 0 0 8px 8px; padding: 18px 20px;
  font-size: 0.92rem; line-height: 1.75; color: var(--dp-text);
}

/* Section header colour variants */
.dp-head-blue      { background: var(--dp-primary); }
.dp-head-orange    { background: var(--dp-orange); }
.dp-head-green     { background: var(--dp-green); }
.dp-head-dark-navy { background: var(--dp-dark-navy); }
.dp-head-red       { background: var(--dp-red); }
.dp-head-purple    { background: var(--dp-purple); }
.dp-head-teal      { background: var(--dp-teal); }
.dp-head-navy      { background: var(--dp-navy); }

/* Inclusions / Exclusions lists */
.dp-bullet-list { list-style: none; padding: 0; margin: 0; }
.dp-bullet-list li {
  padding: 6px 0; display: flex; gap: 10px; align-items: flex-start;
  border-bottom: 1px dashed var(--dp-border);
}
.dp-bullet-list li:last-child { border-bottom: none; }
.dp-bullet-list li::before {
  content: '•'; color: var(--dp-green); font-weight: 900; font-size: 1rem; line-height: 1.6;
}
.dp-bullet-list.dp-cross li::before { content: '×'; color: var(--dp-red); }

/* Day-wise itinerary */
.dp-itin-day { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--dp-border); }
.dp-itin-day:last-child { border-bottom: none; margin-bottom: 0; }
.dp-itin-day h4 {
  font-size: 0.9rem; font-weight: 700; color: var(--dp-navy); margin: 0 0 6px;
}
.dp-itin-day p { color: var(--dp-muted); margin: 0; font-size: 0.88rem; line-height: 1.7; }

/* =========================================================================
   PRICE SIDEBAR (on detail page)
   ========================================================================= */
.dp-price-sidebar {
  background: #fff; border: 1px solid var(--dp-border); border-radius: var(--dp-radius);
  overflow: hidden; box-shadow: var(--dp-shadow); position: sticky; top: 72px;
}
.dp-price-sidebar-head {
  background: var(--dp-navy); padding: 16px 20px;
}
.dp-price-label { color: rgba(255,255,255,0.75); font-size: 0.75rem; }
.dp-price-amount {
  color: #fff; font-size: 1.7rem; font-weight: 700;
  font-family: 'Poppins', sans-serif; line-height: 1.1;
}
.dp-price-amount small { font-size: 0.78rem; font-weight: 400; opacity: 0.8; }
.dp-gst-badge {
  display: inline-block; background: var(--dp-orange); color: #fff;
  font-size: 0.68rem; font-weight: 700; border-radius: 4px;
  padding: 2px 8px; margin-top: 4px;
}
.dp-price-sidebar-body { padding: 18px; }
.dp-price-sidebar-body .dp-form-row { margin-bottom: 12px; }
.dp-price-sidebar-body label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--dp-muted); margin-bottom: 4px;
}
.dp-price-sidebar-body input,
.dp-price-sidebar-body select {
  width: 100%; border: 1.5px solid var(--dp-border); border-radius: 8px;
  padding: 9px 12px; font-family: 'Inter', sans-serif; font-size: 0.9rem;
}
.dp-price-sidebar-body input:focus,
.dp-price-sidebar-body select:focus { border-color: var(--dp-primary); outline: none; }

/* =========================================================================
   STICKY BOTTOM BAR (detail page, mobile & desktop)
   ========================================================================= */
.dp-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #fff; border-top: 1.5px solid var(--dp-border);
  box-shadow: 0 -4px 18px rgba(0,0,0,0.10);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 16px;
}
.dp-sticky-price-label { font-size: 0.72rem; color: var(--dp-muted); margin-bottom: 1px; }
.dp-sticky-price-val {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 1.25rem; color: var(--dp-navy); line-height: 1;
}
.dp-sticky-gst { font-size: 0.68rem; color: var(--dp-muted); }
.dp-sticky-actions { display: flex; gap: 10px; align-items: center; }
.dp-btn { display: inline-flex; align-items: center; gap: 7px; border: none; border-radius: 8px; padding: 10px 20px; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; text-decoration: none; transition: all 0.15s; }
.dp-btn-primary { background: var(--dp-navy); color: #fff; }
.dp-btn-primary:hover { background: #16206e; }
.dp-btn-outline { background: transparent; border: 1.5px solid var(--dp-navy); color: var(--dp-navy); }
.dp-btn-outline:hover { background: var(--dp-navy); color: #fff; }
.dp-btn-download { background: #F0FDF4; color: #166534; border: 1.5px solid #BBF7D0; }
.dp-btn-download:hover { background: var(--dp-green); color: #fff; }

/* =========================================================================
   QUERY MODAL
   ========================================================================= */
.dp-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,25,51,0.55);
  display: none; align-items: center; justify-content: center; z-index: 300; padding: 16px;
}
.dp-modal-overlay.open { display: flex; }
.dp-modal {
  background: #fff; border-radius: var(--dp-radius); max-width: 520px;
  width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.dp-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--dp-border);
}
.dp-modal-head h3 { margin: 0; font-size: 1.05rem; color: var(--dp-navy); }
.dp-modal-close {
  background: none; border: none; font-size: 1.3rem;
  color: var(--dp-muted); cursor: pointer;
}
.dp-modal-body { padding: 22px; }
.dp-form-row { margin-bottom: 14px; }
.dp-form-row label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--dp-navy); margin-bottom: 5px; }
.dp-form-row input, .dp-form-row select, .dp-form-row textarea {
  width: 100%; border: 1.5px solid var(--dp-border); border-radius: 8px;
  padding: 10px 12px; font-family: 'Inter', sans-serif; font-size: 0.92rem; box-sizing: border-box;
}
.dp-form-row input:focus, .dp-form-row select:focus, .dp-form-row textarea:focus {
  border-color: var(--dp-primary); outline: none;
}
.dp-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .dp-form-2col { grid-template-columns: 1fr; } }
.dp-form-note { font-size: 0.76rem; color: var(--dp-muted); margin-top: 10px; }
.dp-form-success { text-align: center; padding: 28px 10px; }
.dp-form-success .icon { font-size: 2.6rem; }
.dp-form-success h4 { color: var(--dp-navy); margin: 12px 0 6px; }
.dp-form-success p { color: var(--dp-muted); font-size: 0.88rem; }

/* =========================================================================
   ADMIN specific utilities (used in admin pages)
   ========================================================================= */
.dp-admin-section-hint { font-size: 0.78rem; color: #6B7280; margin-top: 4px; }
.dp-repeater-wrap { margin-bottom: 12px; }
.dp-repeater-item {
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  align-items: center; margin-bottom: 6px;
}
.dp-repeater-item input, .dp-repeater-item textarea {
  border: 1.5px solid #E5E7EB; border-radius: 7px;
  padding: 8px 12px; font-family: inherit; font-size: 0.88rem; width: 100%;
}
.dp-remove-row {
  background: none; border: 1.5px solid #FCA5A5; color: #EF4444;
  border-radius: 6px; width: 30px; height: 30px; cursor: pointer;
  font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
}

/* Shared utilities */
.dp-empty-state { text-align: center; padding: 50px 20px; color: var(--dp-muted); }
.dp-empty-state h3 { color: var(--dp-text); margin-bottom: 8px; }
