/* ============================================================
   Tourfic Destination Pages — TravelPro-inspired Styling
   Version 1.0.0

   Reuses tftpl- class names from the Tour template for
   consistent visual appearance, plus tfdp- for destination-
   specific components.
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --tfdp-primary: #102039;
  --tfdp-accent: #3fd0d4;
  --tfdp-accent-dk: #33b5b9;
  --tfdp-bg: #f5f5f5;
  --tfdp-white: #ffffff;
  --tfdp-border: #e0e0e0;
  --tfdp-text: #555555;
  --tfdp-text-dk: #333333;
  --tfdp-text-lt: #999999;
  --tfdp-radius: 6px;
  --tfdp-font-body: "Jost", sans-serif;
  --tfdp-font-head: "Playfair Display", serif;
}

/* ── Reset / Base ──────────────────────────────────────────── */
.tfdp-destination-wrapper,
.tfdp-destination-wrapper * {
  box-sizing: border-box;
}
.tfdp-destination-wrapper {
  font-family: var(--tfdp-font-body);
  color: var(--tfdp-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ────────────────────────────────────────────────── */
.tftpl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.tftpl-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.tftpl-col-8 {
  flex: 0 0 calc(66.666% - 15px);
  max-width: calc(66.666% - 15px);
}
.tftpl-col-4 {
  flex: 0 0 calc(33.333% - 15px);
  max-width: calc(33.333% - 15px);
  position: sticky;
  top: 30px;
}

/* ── Spacer ────────────────────────────────────────────────── */
.tftpl-spacer--lg {
  height: 80px;
}

/* ── Tour Header Title ─────────────────────────────────────── */
.tftpl-tour-header-title {
  font-family: var(--tfdp-font-head);
  font-size: 42px;
  font-weight: 700;
  color: var(--tfdp-primary);
  margin: 0 0 35px;
  line-height: 1.3;
}
.tftpl-tour-header-title small {
  display: block;
  font-family: var(--tfdp-font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--tfdp-text-lt);
  margin-top: 6px;
}
.tftpl-tour-header-title small i {
  color: var(--tfdp-accent);
  margin-right: 4px;
}

/* ── Featured Image ────────────────────────────────────────── */
.tftpl-featured-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
}
.tftpl-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.tftpl-gallery-count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(16, 32, 57, 0.75);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ── Tour Title ────────────────────────────────────────────── */
.tftpl-tour-title {
  font-family: var(--tfdp-font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--tfdp-primary);
  margin: 10px 0 20px;
}

/* ── Description ───────────────────────────────────────────── */
.tftpl-tour-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--tfdp-text);
  margin-bottom: 20px;
}
.tftpl-tour-description p {
  margin: 0 0 14px;
}
.tftpl-divider {
  border: none;
  border-top: 1px solid var(--tfdp-border);
  margin: 35px 0;
}

/* ── Tabs ──────────────────────────────────────────────────── */
.tftpl-tabs {
  margin-bottom: 50px;
}
.tftpl-tab-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  background: var(--tfdp-primary);
  border-radius: var(--tfdp-radius) var(--tfdp-radius) 0 0;
  padding: 10px 14px 0;
}
.tftpl-tab-links li {
  margin: 0;
}
.tftpl-tab-link {
  display: inline-block;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border-radius: var(--tfdp-radius) var(--tfdp-radius) 0 0;
  transition:
    background 0.2s,
    color 0.2s;
  cursor: pointer;
}
.tftpl-tab-links li.active .tftpl-tab-link,
.tftpl-tab-link:hover {
  background: var(--tfdp-white);
  color: var(--tfdp-primary);
}
.tftpl-tab-body {
  border: 1px solid var(--tfdp-border);
  border-top: none;
  border-radius: 0 0 var(--tfdp-radius) var(--tfdp-radius);
  padding: 24px;
  background: var(--tfdp-white);
}
.tftpl-tab {
  display: none;
}
.tftpl-tab.active {
  display: block;
}

/* ── Map ───────────────────────────────────────────────────── */
.tftpl-map-wrapper iframe,
.tftpl-map-wrapper > div {
  border-radius: var(--tfdp-radius);
  width: 100%;
}

/* ── Gallery Grid ──────────────────────────────────────────── */
.tftpl-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tftpl-gallery-item {
  position: relative;
  border-radius: var(--tfdp-radius);
  overflow: hidden;
  display: block;
}
.tftpl-gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.tftpl-gallery-item:hover img {
  transform: scale(1.05);
}
.tftpl-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 57, 0);
  transition: background 0.3s;
}
.tftpl-gallery-item:hover .tftpl-gallery-overlay {
  background: rgba(16, 32, 57, 0.35);
}
.tftpl-gallery-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 22px;
  opacity: 0;
  transition: opacity 0.3s;
}
.tftpl-gallery-item:hover .tftpl-gallery-icon {
  opacity: 1;
}

/* ── Section Titles ────────────────────────────────────────── */
.tftpl-section-title {
  font-family: var(--tfdp-font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--tfdp-primary);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tfdp-accent);
  display: inline-block;
}

/* ── Highlights ────────────────────────────────────────────── */
.tftpl-highlights-section {
  margin-bottom: 30px;
}
.tftpl-highlights-content {
  font-size: 15px;
  line-height: 1.8;
}
.tftpl-highlights-content ul {
  padding-left: 20px;
}
.tftpl-highlights-content li {
  margin-bottom: 8px;
}

/* ── Footer Gallery ────────────────────────────────────────── */
.tftpl-footer-gallery {
  margin-bottom: 30px;
}
.tftpl-gallery-heading {
  font-family: var(--tfdp-font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--tfdp-primary);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tfdp-accent);
  display: inline-block;
}
.tftpl-gallery-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tftpl-gallery-thumb {
  border-radius: var(--tfdp-radius);
  overflow: hidden;
}
.tftpl-gallery-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.tftpl-gallery-thumb:hover img {
  transform: scale(1.05);
}

/* ── Sidebar ───────────────────────────────────────────────── */
.tftpl-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Info Widget ───────────────────────────────────────────── */
.tftpl-info-widget {
  background: var(--tfdp-white);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.tftpl-widget-title {
  font-family: var(--tfdp-font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--tfdp-primary);
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--tfdp-accent);
}
.tftpl-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tftpl-info-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid #e9ecef;
}
.tftpl-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.tftpl-info-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--tfdp-primary);
  margin: 0;
  white-space: nowrap;
}
.tftpl-info-value {
  font-size: 15px;
  color: var(--tfdp-text);
  margin: 0;
  text-align: right;
}
.tftpl-info-value a {
  color: var(--tfdp-accent);
  text-decoration: none;
}
.tftpl-info-value a:hover {
  text-decoration: underline;
}
.tftpl-info-price {
  color: var(--tfdp-accent) !important;
  font-weight: 600;
}

/* ── Related Tours Widget (sidebar) ────────────────────────── */
.tftpl-related-widget {
  background: var(--tfdp-white);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.tftpl-recent-tours {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tftpl-recent-tours li {
  margin-bottom: 14px;
}
.tftpl-recent-tours li:last-child {
  margin-bottom: 0;
}
.tftpl-recent-tour {
  display: flex;
  gap: 12px;
  align-items: center;
}
.tftpl-recent-tour-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: var(--tfdp-radius);
  overflow: hidden;
}
.tftpl-recent-tour-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tftpl-recent-tour-info {
  flex: 1;
  min-width: 0;
}
.tftpl-recent-tour-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.3;
}
.tftpl-recent-tour-title a {
  color: var(--tfdp-primary);
  text-decoration: none;
}
.tftpl-recent-tour-title a:hover {
  color: var(--tfdp-accent);
}
.tftpl-recent-tour-meta {
  font-size: 12px;
  color: var(--tfdp-text-lt);
}
.tftpl-recent-tour-meta i {
  color: var(--tfdp-accent);
  margin-right: 3px;
}

/* ============================================================
   DESTINATION-SPECIFIC COMPONENTS (tfdp- prefix)
   ============================================================ */

/* ── Tour Cards Grid ───────────────────────────────────────── */
.tfdp-related-tours-section {
  margin-bottom: 30px;
}
.tfdp-tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 4px;
}
.tfdp-tour-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: var(--tfdp-white);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}
.tfdp-tour-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}
.tfdp-tour-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.tfdp-tour-card-image {
  position: relative;
  overflow: hidden;
}
.tfdp-tour-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.tfdp-tour-card:hover .tfdp-tour-card-image img {
  transform: scale(1.06);
}
.tfdp-tour-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--tfdp-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}
.tfdp-tour-card-badge i {
  margin-right: 4px;
}
.tfdp-tour-card-body {
  padding: 16px;
}
.tfdp-tour-card-dest {
  display: block;
  font-size: 12px;
  color: var(--tfdp-text-lt);
  margin-bottom: 6px;
}
.tfdp-tour-card-dest i {
  color: var(--tfdp-accent);
  margin-right: 3px;
}
.tfdp-tour-card-title {
  font-family: var(--tfdp-font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--tfdp-primary);
  margin: 0 0 10px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tfdp-tour-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}
.tfdp-price-label {
  font-size: 12px;
  color: var(--tfdp-text-lt);
  text-transform: uppercase;
}
.tfdp-price-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--tfdp-accent);
}

/* ── Inquiry Widget ────────────────────────────────────────── */
.tfdp-inquiry-widget {
  background: var(--tfdp-bg);
  border-radius: 10px;
  padding: 24px;
}
.tfdp-inquiry-title {
  font-family: var(--tfdp-font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--tfdp-primary);
  margin: 0 0 18px;
}
.tfdp-inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tfdp-field input[type="text"],
.tfdp-field input[type="email"],
.tfdp-field textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--tfdp-font-body);
  font-size: 14px;
  color: var(--tfdp-text-dk);
  background: var(--tfdp-white);
  border: 1px solid var(--tfdp-border);
  border-radius: var(--tfdp-radius);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.tfdp-field input::placeholder,
.tfdp-field textarea::placeholder {
  color: #aaa;
  opacity: 1;
}
.tfdp-field input:focus,
.tfdp-field textarea:focus {
  border-color: var(--tfdp-accent);
  box-shadow: 0 0 0 3px rgba(63, 208, 212, 0.12);
}
.tfdp-field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}
.tfdp-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  font-family: var(--tfdp-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--tfdp-white);
  background: var(--tfdp-accent);
  border: none;
  border-radius: var(--tfdp-radius);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}
.tfdp-submit-btn:hover {
  background: var(--tfdp-accent-dk);
}
.tfdp-submit-btn:active {
  transform: scale(0.98);
}
.tfdp-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.tfdp-btn-loading {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Message Box ───────────────────────────────────────────── */
.tfdp-message-box {
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: var(--tfdp-radius);
  font-size: 13px;
  line-height: 1.5;
}
.tfdp-message-box.tfdp-success {
  background: #e8f9f0;
  border: 1px solid #a3e4bc;
  color: #1a7a42;
}
.tfdp-message-box.tfdp-error {
  background: #fef0ef;
  border: 1px solid #f5c2c0;
  color: #c0392b;
}

/* ── Input Error State ─────────────────────────────────────── */
.tfdp-field input.tfdp-input-error,
.tfdp-field textarea.tfdp-input-error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
  .tftpl-row {
    flex-direction: column;
  }
  .tftpl-col-8,
  .tftpl-col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .tftpl-col-4 {
    position: static;
  }
  .tfdp-tour-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .tftpl-featured-image img {
    height: 240px;
  }
  .tftpl-tour-header-title {
    font-size: 22px;
  }
  .tftpl-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tftpl-gallery-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .tfdp-tour-grid {
    grid-template-columns: 1fr;
  }
  .tftpl-tab-links {
    flex-wrap: wrap;
  }
}
