/* ==========================================================
   🧭 GLOBAL TEMPLATE FIXES
========================================================== */

/* Remove unexpected WP wrapper margins */
#primary.site-main,
#primary .container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Hide default title and featured image only on Iran-tour pages */
/* Hide header/title/featured image on pages that have the body class Iran-tour-page */
/* You said you added: <body <?php body_class('Iran-tour-page'); ?>> */
.iran-tour-page .entry-header,
.iran-tour-page .page-header,
.iran-tour-page .post-thumbnail,
.iran-tour-page .featured-image,
.iran-tour-page .entry-title,
.iran-tour-page .page-title {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
}



/* ✅ Works for both iran-tours.php and iran-10-days-tour.php */
html body[class*="page-template-iran"] main#iran-main.iran-site-main > .iran-container {
  width: 100% !important;
  max-width: 1800px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Neutralize Astra container limits for both pages */
html body[class*="page-template-iran"] .ast-container {
  max-width: none !important;
  padding: 0 !important;
}




/* ==========================================================
   🌍 MAIN IRAN TOUR LAYOUT
========================================================== */

/* Base reset */
.main-iran-tour body,
.main-iran-tour h1,
.main-iran-tour h2,
.main-iran-tour h3,
.main-iran-tour h4,
.main-iran-tour p,
.main-iran-tour ul,
.main-iran-tour li {
  margin: 0;
  padding: 0;
}

.main-iran-tour body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #fafafa;
  color: #333;
  overflow-x: hidden;
}

.main-iran-tour a {
  text-decoration: none;
  color: inherit;
}

.main-iran-tour ul {
  list-style: none;
}

/* Hero Section */
.main-iran-tour .iran-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.main-iran-tour .iran-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(120%);
}

.main-iran-tour .iran-hero-text {
  position: absolute;
  top: 78%;
  left: 26%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.main-iran-tour .iran-hero-text h1 {
  color: #fff !important;
}

.main-iran-tour .iran-hero-text p {
  font-size: 20px;
  color: #fff !important;
}

/* Page Layout */
.main-iran-tour .irantour-page {
  display: flex;
  gap: 2rem;
  margin: -10vh auto 1rem;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
  z-index: 10;
}

.main-iran-tour .irantour-content {
  flex: 3;
  background: #ccfff8;;
  border-radius: 12px;
padding: 20px 20px 20px 20px;
  box-shadow: 0 8px 25px rgba(20,184,166,0.3);
  height: auto;
position: relative;
margin-left: 10px;
}

/* Parent column fix */
.main-iran-tour .col-md-3 {
  position: relative;
  overflow: visible !important;
}

/* Sidebar itself */
.main-iran-tour .irantour-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 100px;
  box-sizing: border-box;
  height: fit-content;

  /* ✅ key: let sidebar scroll inside itself */
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overflow-x: hidden;
}

.header-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-price p {
margin: 0;
color: #33cccc;
font-size: 24px;
}

.header-price h3 {
margin: 0 auto;
color: #33cccc;
}

/* Smooth scrollbar styling */
.main-iran-tour .irantour-sidebar::-webkit-scrollbar {
  width: 8px;
}
.main-iran-tour .irantour-sidebar::-webkit-scrollbar-thumb {
  background: #33cccc;
  border-radius: 8px;
}
.main-iran-tour .irantour-sidebar::-webkit-scrollbar-track {
  background: #f5f5f5;
}

/* On smaller devices */
@media (max-width: 992px) {
  .main-iran-tour .irantour-sidebar {
    position: relative;
    top: unset;
    max-height: none;
    overflow: visible;
  }
}




/* Responsive layout */
@media (max-width: 992px) {
  .main-iran-tour .irantour-page {
    flex-direction: column;
  }
  .main-iran-tour .irantour-sidebar {
    position: relative;
    top: unset;
  }
}

.spacer { height: 20px; }
.spacer-input { height: 5px; }


#irantourGallery {
  height: 68vh;          /* 60% of viewport height */
}

#irantourGallery .carousel-inner,
#irantourGallery .carousel-item,
#irantourGallery .carousel-item img {
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* ==========================================================
   🧾 SIDEBAR BOOKING FORM
========================================================== */

.main-iran-tour-sidebar {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(218,165,32,0.5),
              0 0 15px rgba(218,165,32,0.3) inset;
  padding: 1rem;
  max-width: 400px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: visible !important;
  z-index: 100;
height: 700px;
}

/* Decorative gradient background */
.main-iran-tour-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(51,204,204,0.1), rgba(255,122,0,0.05));
  border-radius: 16px;
  z-index: 0;
}

.main-iran-tour-sidebar * {
  position: relative;
  z-index: 1;
}

/* Labels & Inputs */
.main-iran-tour-sidebar label {
  font-weight: 600;
  color: #444;
  display: block;
  margin-bottom: 0.5rem;
}

.main-iran-tour-sidebar input,
.main-iran-tour-sidebar select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  transition: 0.3s ease;
}

.main-iran-tour-sidebar input:focus,
.main-iran-tour-sidebar select:focus {
  border-color: #33cccc;
  box-shadow: 0 0 0 4px rgba(51, 204, 204, 0.2);
  outline: none;
}

/* Counter */
.counter-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0.5rem 0;
}

.counter-btn {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.counter-btn:hover {
  background: #33cccc;
  border-color: #33cccc;
  color: #fff;
}

/* Price Box */
.price-box {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
  font-size: 0.95rem;
}

.price-box .num {
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: #ff7a00;
}



/* ==========================================================
   💬 TOOLTIP (INFO ICON)
========================================================== */

.form-group {
  position: relative;
  overflow: visible !important;
  z-index: 100;
}

/* Info icon */
.iran-info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 12px;
  border: 1px solid #33cccc;
  border-radius: 50%;
  color: #33cccc;
  cursor: pointer;
  margin-left: 6px;
  z-index: 101;
}

/* Tooltip box (desktop) */
.iran-tooltip-box {
  display: none;
  position: absolute;
  top: 70%;
  right: calc(100% - 260px);
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.3;
  width: 255px;
  z-index: 9999;
  white-space: normal;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Show on toggle */
.iran-tooltip-box.show {
  display: block;
}

/* Arrow (left side) */
.iran-tooltip-box::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.9);
}

/* Mobile-friendly positioning */
@media (max-width: 768px) {
  .iran-tooltip-box {
    top: 35%;
    left: 0;
    right: auto;
    transform: translateY(8px);
    width: 95%;
    z-index: 99999;
  }

  .iran-tooltip-box::after {
    top: -6px;
    left: 12px;
    right: auto;
    transform: none;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
  }
}

/* ==========================================================
   🚀 FLIP CARD 
========================================================== */
.flip-card {
  background: transparent;
  width: 100%;
  height: 130px;
  perspective: 1000px; /* crucial */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  background: #33cccc;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* ==========================================================
   🚀 CTA BUTTON
========================================================== */

.custom-submit-button {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #ff7a00, #ff944d);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.custom-submit-button:hover {
  background: linear-gradient(135deg, #ff944d, #ff7a00);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 122, 0, 0.5);
}

.custom-submit-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4);
}



/* ==========================================================
   🌀 ERROR STATES
========================================================== */

#main-tour-date.input-error {
  border: 2px solid #ff4d4f;
  animation: shake 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
}



/* ==========================================================
   🎯 FEATURE BOXES & CONTENT SECTIONS
========================================================== */

/* Container for spacing */
.main-iran-tour .irantour-features-wrapper {
  gap: 1rem;
}

/* Base style */
.main-iran-tour .irantour-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 0.4rem 0.5rem;
  border-left: 4px solid #00b3b3; /* turquoise accent */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: default;
height: 70px;
}

/* Icon styling */
.main-iran-tour .irantour-feature .feature-icon {
  font-size: 1.8rem;
  color: #00b3b3;
  background: rgba(0, 179, 179, 0.08);
  padding: 0.7rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Text block */
.main-iran-tour .irantour-feature .feature-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.main-iran-tour .irantour-feature .feature-text strong {
  font-size: 0.95rem;
  color: #333;
  font-weight: 600;
}

.main-iran-tour .irantour-feature .feature-text span {
  font-size: 0.95rem;
  color: #666;
font-weight: 400;
}

/* Hover effects */
.main-iran-tour .irantour-feature:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(0, 179, 179, 0.15);
  border-left-color: #00cccc;
}

.main-iran-tour .irantour-feature:hover .feature-icon {
  background: #00b3b3;
  color: #fff;
  transform: rotate(8deg); /* icon becomes tilted / kaj   */
}






.main-iran-tour .iran-intro,
.main-iran-tour .iran-details,
.main-iran-tour .iran-inclusions,
.main-iran-tour .iran-extra,
.main-iran-tour .iran-toggle {
  margin: 2rem auto;
  max-width: 1100px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.main-iran-tour .iran-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1rem;
}

.main-iran-tour .iran-extra p {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  font-size: .95rem;
}


/* Fancy intro box under carousel */
/* Elegant iran Tour Intro */
.iran-tour-intro {
  font-family: "Poppins", sans-serif;
  color: #333;
  line-height: 1.7;
  max-width: 850px;
  margin: auto;
  padding: 0 0rem;
}

.iran-tour-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #007a7a;
  margin-bottom: 1.5rem !important;
  letter-spacing: 0.3px;
 margin-top: 1.5rem !important;
}

.iran-tour-content {
  max-height: 240px;
  overflow: hidden;
  transition: max-height 0.6s ease-in-out;
  position: relative;
padding: 20px 20px;
}

.iran-tour-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 60px;
  width: 100%;
  
  transition: opacity 0.4s;
}

.iran-tour-content.expanded {
  max-height: 3000px;
}

.iran-tour-content.expanded::after {
  opacity: 0;
}

.iran-tour-content h3 {
  color: #ff7a00;
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1.3rem;
}

.iran-tour-content ul {
  list-style: none;
  padding-left: 0;
}

.iran-tour-content li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.tour-details {
  margin-top: 1rem;
}

.includes {
  margin-left: 1.5rem;
  list-style: circle;
}

.tour-ending {
  margin-top: 1.5rem;
  font-style: italic;
  color: #444;
}

.tour-reserve {
  font-size: 1.1rem;
  font-weight: 600;
  color: blue;
  margin-top: 1rem;
}

.tour-keywords {
  font-size: 0.85rem;
  color: #777;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .iran-tour-title {
    font-size: 1.5rem;
  }
  .iran-tour-content {
    max-height: 180px;
  }
}







/* ---------------------------- */
/* Iran Itinerary Wide Boxes */
/* ---------------------------- */
.iran-itinerary {
  font-family: "Poppins", sans-serif;
  color: #F54927;
  line-height: 1.7;
  max-width: 1100px;
  margin: 1rem auto;
  padding: 0 1rem;
}

/* City Cards */
/* ---------------------------------------------- */
/*  Elegant Itinerary Cards - Always Override     */
/* ---------------------------------------------- */

/* === Iran Itinerary Drawer Styles === */

.iranit-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.iranit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.iranit-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #007a7a, #00b3b3);
  color: #fff;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

.iranit-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  flex: 1;
}

.iranit-card-header i {
  margin-right: 0.75rem;
  font-size: 1.3rem;
}

/* --- Details toggle button --- */
.iranit-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.iranit-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* --- Drawer content --- */
.iranit-card-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  background: #fafafa;
  transition: max-height 0.5s ease, padding 0.3s ease;
  font-family: "Inter", sans-serif;
  color: #333;
  font-size: 1rem;
  line-height: 1.7;
  border-top: 1px solid #eee;
}

.iranit-card.open .iranit-card-body {
  max-height: 1500px; /* large enough for any content */
  padding: 1.5rem;
}

/* --- Content inside drawer --- */
.iranit-card-body ul {
  margin: 0;
  padding-left: 1.2rem;
}

.iranit-card-body li {
  margin-bottom: 0.6rem;
}

.iranit-card-body p {
  margin-top: 1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .iranit-card-header h3 {
    font-size: 1rem;
  }
}









/* 🌟 Tour Inclusions Section */
/* ========== 🧭 Extra Info Cards ========== */
.tour-extra-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 1rem auto 1rem;
  max-width: 1200px;
  padding: 0 1rem;
}

.info-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(118,165,32,0.5),
              0 0 15px rgba(118,165,32,0.3) inset;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  border-top: 3px solid #20b2aa; /* turquoise accent */
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.info-card i {
  font-size: 1.5rem;
  color: #20b2aa;
  flex-shrink: 0;
}

.info-card p {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ========== 🧳 Included & Excluded Cards ========== */
.tour-inclusions-clean {
  margin: 3rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

.include-exclude-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.include-card,
.exclude-card {
  flex: 1 1 45%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  padding: 1.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.include-card:hover,
.exclude-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* Included Card Styling */
.include-card {
  border-left: 5px solid #20b2aa; /* turquoise */
}

.include-card h4 {
  color: #20b2aa;
}

/* Excluded Card Styling */
.exclude-card {
  border-left: 5px solid #e57373; /* soft red */
}

.exclude-card h4 {
  color: #e57373;
}

/* Shared Header */
.include-card h4,
.exclude-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.include-card ul,
.exclude-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #444;
  font-size: 0.95rem;
}

.include-card li,
.exclude-card li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .include-exclude-wrapper {
    flex-direction: column;
  }
  .include-card,
  .exclude-card {
    flex: 1 1 100%;
  }
  .tour-extra-info {
    grid-template-columns: 1fr;
  }
}






/* --- Related Tours Section --- */
.related-tours {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
width: 365px;

}

.related-tours h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1.8rem;
  position: relative;
}

.related-tours h3::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #ffd700;
  border-radius: 2px;
  margin: 0.6rem auto 0;
}




/*emphasize-price-icon*/
#related-tours-section .price::before {
  content: '';
  position: absolute;
  background: url('../assets/icons/emphasize-price-icon.svg') no-repeat center center;
  background-size: contain;
  z-index: -1;
  filter: brightness(0) saturate(100%) invert(42%) sepia(48%) saturate(838%) hue-rotate(314deg) brightness(91%) contrast(108%);
  top: -18px;
  left: -6px;
  width: 60px;
  height: 60px;
}

/* 🔴 Emphasize price style (shared for all prices) */
/* 🎯 Strong version for price emphasis */
div#irantour-sidebar span#main-tour-lowest-price.price {
  position: relative !important;
  display: inline-block;
  font-weight: 700;
  font-size: 1.4rem;
  z-index: 1;
}

div#irantour-sidebar span#main-tour-lowest-price.price::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 53%;
  transform: translate(-50%, 55px);
  width: 200px;
  height: 90px;
  background: url('/wp-content/themes/yazdvoyage-child/assets/icons/emphasize-price-icon.svg') no-repeat center center;
  background-size: contain;
  z-index: -1;
  filter: brightness(0) saturate(100%) invert(42%) sepia(48%) saturate(838%) hue-rotate(314deg) brightness(91%) contrast(108%);
  pointer-events: none;
  opacity: 0.9;
}


/* Optional fine-tune for small screens */
@media (max-width: 768px) {
  .price::before {
    width: 140px;
    height: 60px;
    opacity: 0.8;
  }
}

.related-info {
  padding: 1rem 1.2rem 1.3rem;
}

.related-info h4 {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.related-info p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}



.related-btn:hover {
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  color: #fff;
  transform: translateY(-1px);
}





/* --- Under Sidebar Add-ons (Read More + Related Tours) --- */

/* Read More Button */
.readmore-btn {
  background: linear-gradient(90deg, #ffb347, #ffcc33);
  color: #222;
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}
.readmore-btn:hover {
  background: linear-gradient(90deg, #ffcc33, #ffb347);
  transform: translateY(-2px);
}

/* Expandable content */

#iran-tour-content.expanded {
  max-height: 1200px;
}

/* Related Tours Section */
.hidden {
  display: none;
}


/* ==========================
   Grid Layout
========================== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* slightly smaller min width */
  gap: 0.6rem;  /* reduced gap */
  padding: 0.5rem;
}

.related-tours.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  height: auto; /* removed fixed large height */
}

/* ==========================
   Card Styles
========================== */
.related-card {
  background: #fff;
  border-radius: 14px; /* slightly smaller radius */
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08); /* softer shadow */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0.5rem; /* added internal padding */
}

.related-card:hover {
  transform: translateY(-4px); /* smaller lift */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ==========================
   Image
========================== */
.related-card .image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  max-height: 200px; /* reduced height */
}

.related-card img {
  width: 100%;
  max-height: 150px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.related-card:hover img {
  transform: scale(1.05);
}

/* ==========================
   Discount Badge
========================== */
.related-card .discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff4b4b;
  color: #fff;
  font-size: 0.75rem; /* smaller */
  font-weight: 700;
  padding: 4px 8px; /* smaller */
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* ==========================
   Text & Price
========================== */
.related-card p {
  font-size: 1.10rem !important;; /* slightly smaller */
  color: #333;
  text-align: center;
  margin: 0.4rem 0 0.6rem 0;
}

.related-card p span {
  font-size: 1.0rem !important; /* only affects the span, keeps "From" visible */
  margin-left: 4px;
}


.related-card .old-price {
  text-decoration: line-through red 2px;
  color: #999;
  margin-right: 10px; /* space between old and new price */
  font-size: 0.85rem;
}

.related-card .price {
  color: #00E6BD;
  font-weight: 700;
  font-size: 0.95rem; /* slightly smaller */
  margin-left: 4px; /* space between "From" and price */
}



/* Optional discount badge */
.related-card::after {
  content: attr(data-discount);
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff4b4b;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
}


/* Price Section */
.related-card .price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eee;
  margin-top: auto;
  padding-top: 0.6rem;
}

.related-card .price-label {
  color: #33cccc;
  font-size: 0.95rem;
  font-weight: 600;
}

.related-card .price-value {
  color: #33cccc;
  font-weight: 800;
  font-size: 1.15rem;
}

/* View Tour Button */
.related-btn {
  background: linear-gradient(90deg, #ffb347, #ffcc33);
  color: #222;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  margin-top: 0.8rem;
  transition: all 0.3s ease;
font-size: 0.9rem;
}

  
  
  



  
  
  
 




.related-btn:hover {
  background: linear-gradient(90deg, #ffcc33, #ffb347);
  transform: translateY(-2px);
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }



  .related-card h4 {
    font-size: 1rem;
  }

  .related-card .price-value {
    font-size: 1rem;
  }
}





/* ✅ Loading spinner */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #ddd;
  border-top-color: #ffb347;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 2rem auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ✅ Content expand animation */
#iran-tour-content {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

#iran-tour-content.expanded {
  max-height: 1200px; /* adjust to your content length */
}









/* =============================
   ✨ Read More Wrapper
============================= 

/* Read More Wrapper */
.iran-readmore-wrapper {
  margin-top: 2rem;
max-width: 860px;
margin-left: 20px;

}

.iran-readmore-content {
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  padding: 1.2rem;
  margin-top: 1rem;
  background: #fff;
  transition: all 0.3s ease;
  border-top: 3px solid #20b2aa; /* turquoise accent */
}

.hidden {
  display: none;
}
/* Headings inside content */
.iran-readmore-content h3 {
  font-size: 1.35rem;
  color: #ff7a00;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Lists inside content */
.iran-readmore-content ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.iran-readmore-content ul li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.2rem;
}

.iran-readmore-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #33cccc;
  font-weight: bold;
}

/* Paragraphs */
.iran-readmore-content p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

/* Highlight Reserve Button */
.tour-reserve {
  font-size: 1.05rem;
  font-weight: 600;
  color: #007a7a;
}

.tour-reserve strong {
  color: #ff7a00;
}

/* Keywords styling */
.tour-keywords {
  font-size: 0.85rem;
  color: #777;
  margin-top: 2rem;
  font-style: italic;
}


.iran-readmore-btn {
  background: #33cccc;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
margin-left: 30px;
margin-top: 5px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
box-shadow: 0 5px 15px rgba(0, 122, 122, 0.3);
}

.iran-readmore-btn:hover {
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.3);
}


/* Mobile responsiveness */
@media (max-width: 768px) {
  .iran-readmore-wrapper {
    margin: 2rem 1rem;
  }

  .iran-readmore-btn {
    width: 100%;
margin: 0;
  }

  .iran-readmore-content {
    padding: 1.5rem 1rem;
  }
}


/* ==========================================================
   🧭 GLOBAL TEMPLATE FIXES - RESPONSIVE
========================================================== */

/* On smaller devices */
@media (max-width: 992px) {
  .main-iran-tour .irantour-page {
    flex-direction: column;
  }

  .main-iran-tour .irantour-sidebar {
    position: relative;
    top: unset;
  }

  .main-iran-tour .irantour-content {
    padding: 10px;
margin-left: 0px;
  }

  .main-iran-tour .col-md-3 {
    width: 100%;
  }

  /* Hero Section */
  .main-iran-tour .iran-hero-text {
    top: 75%;
    left: 30%;
    transform: translate(-45%, -40%);
    max-width: 100%;
    padding: 1rem;
  }

  .main-iran-tour .iran-hero-text p {
    font-size: 16px;
  }
}

/* On smaller devices */
@media (max-width: 768px) {
  /* Sidebar */
  .main-iran-tour .irantour-sidebar {
    position: relative;
    top: unset;
    max-height: none;
    overflow: visible;
    padding: 1rem;
  }

  /* Adjust carousel height */
  #irantourGallery {
    height: 50vh;  /* Adjusted for better visibility */
  }

  /* Adjust flip-card */
  .flip-card {
    display: none;
    height: 150px;
  }

  .flip-card-inner {
    transform: rotateY(0);
  }

  .main-iran-tour-sidebar {
    width: 100%;
    max-width: 100%;
  }

  /* Make related tours section more flexible */
  .related-tours {
    width: 100%;
    margin-top: 1rem;
  }

  .related-tours h3 {
    font-size: 1.2rem;
  }

  .related-tours h3::after {
    width: 60px;
  }

  /* Tooltips on mobile */
  .iran-tooltip-box {
    top: 35%;
    left: 0;
    right: auto;
    transform: translateY(8px);
    width: 95%;
  }

  .iran-tooltip-box::after {
    top: -6px;
    left: 12px;
    transform: none;
    border-width: 6px;
  }

  /* Tour info cards */
  .tour-extra-info {
    grid-template-columns: 1fr;
  }

  .include-exclude-wrapper {
    flex-direction: column;
  }

  .include-card,
  .exclude-card {
    flex: 1 1 100%;
  }

  /* Adjust buttons */
  .custom-submit-button {
    padding: 0.8rem;
    font-size: 1rem;
  }

  /* Adjust header and content sections */
  .main-iran-tour .iran-intro,
  .main-iran-tour .iran-details,
  .main-iran-tour .iran-inclusions,
  .main-iran-tour .iran-extra,
  .main-iran-tour .iran-toggle {
    padding: 1rem;
  }
}

/* Adjust text sizes on very small screens */
@media (max-width: 480px) {
  /* Hero Section */
  .main-iran-tour .iran-hero-text p {
    font-size: 14px;
  }

  /* Adjust label text */
  .main-iran-tour-sidebar label {
    font-size: 0.9rem;
  }

  .main-iran-tour-sidebar input,
  .main-iran-tour-sidebar select {
    font-size: 0.9rem;
  }

  .price-box {
    font-size: 0.85rem;
  }

  /* Adjust flip-card height */
  .flip-card {
    height: 130px;
  }

  /* Adjust button padding */
  .custom-submit-button {
    font-size: 0.95rem;
    padding: 0.8rem;
  }

  /* Adjust related tours */
  .related-tours h3 {
    font-size: 1rem;
  }
}

/* ==========================================================
   🧾 SIDEBAR BOOKING FORM - RESPONSIVE
========================================================== */

@media (max-width: 992px) {
  .main-iran-tour-sidebar {
    max-width: 100%;
    width: 100%;
    margin: 1rem 0;
  }

  .main-iran-tour-sidebar input,
  .main-iran-tour-sidebar select {
    width: 100%;
    font-size: 1rem;
  }

  .counter-wrapper {
    flex-direction: horizontal;
  }

  .price-box {
    margin-top: 1rem;
    padding: 0.8rem;
  }
}

@media (max-width: 768px) {
  .counter-wrapper {
    flex-direction: horizontal;
    gap: 0.8rem;
  }
}

/* ==========================================================
   🌀 ERROR STATES - RESPONSIVE
========================================================== */

@media (max-width: 768px) {
  #main-tour-date.input-error {
    font-size: 1rem;
  }
}

/* ==========================================================
   💬 TOOLTIP (INFO ICON) - RESPONSIVE
========================================================== */

@media (max-width: 768px) {
  .iran-info-icon {
    width: 22px;
    height: 22px;
    font-size: 14px;
  }
}

/* ==========================================================
   🚀 FLIP CARD - RESPONSIVE
========================================================== */

@media (max-width: 992px) {
  .flip-card {
    height: 150px;
  }
}

/* ==========================================================
   🎯 FEATURE BOXES & CONTENT SECTIONS - RESPONSIVE
========================================================== */

@media (max-width: 768px) {
  .main-iran-tour .irantour-feature {
    height: auto;
    font-size: 0.9rem;
margin-top: 5px;
  }

  .main-iran-tour .iran-intro,
  .main-iran-tour .iran-details,
  .main-iran-tour .iran-inclusions,
  .main-iran-tour .iran-extra,
  .main-iran-tour .iran-toggle {
    padding: 1rem;
  }
}

/* ==========================================================
   🌟 Tour Inclusions Section - RESPONSIVE
========================================================== */

@media (max-width: 768px) {
  .tour-extra-info {
    grid-template-columns: 1fr;
  }

  .info-card {
    flex-direction: column;
    gap: 0.8rem;
  }
}

/* ==========================================================
   --- Related Tours Section --- RESPONSIVE
========================================================== */

@media (max-width: 768px) {
  .related-tours {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
box-shadow: 0 8px 25px rgba(118,165,32,0.5),
              0 0 15px rgba(118,165,32,0.3) inset;
  }

  /* Ensuring proper display of related tours after Read More */
  #related-tours-section {
    order: 1;
    margin-top: 5rem;
  }

  .iran-readmore-wrapper {
    margin-bottom: 1.5rem;
  }

  .iran-readmore-content {
    margin-bottom: 1rem;
margin-top: 0rem;
box-shadow: 0 8px 25px rgba(20,184,166,0.20);
  }
}



.spacer {
  height: 20px;   /* adjust as needed */
}
.spacer1 {
  height: 30px;   /* adjust as needed */
}
.spacer2 {
  height: 10px;   /* adjust as needed */
}

.line-text {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
font-size: 22px;
font-weight: 600;
}

.line-text::before,
.line-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ccc;
}

.line-text:not(:empty)::before {
  margin-right: 0.75em;
}
.line-text:not(:empty)::after {
  margin-left: 0.75em;
}

.line-text span {
  font-weight: bold;
  color: Turquoise; /* teal accent */
}


/* ============ Map ======== */
#iran-tour-map {
max-width: 860px;
  height: 400px;
  border-radius: 12px;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  z-index: 1;
border: 3px;
border-color: blue;
text-align: center;
}

.map-section {
  text-align: center;
  margin-top: 1.5rem;
}

.leaflet-container {
border: 1px solid #ccc !important;
}
.map-btn {
  background: #00e6bd;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
box-shadow: 0 8px 25px rgba(218,165,32,0.5), 0 0 15px rgba(218,165,32,0.3) inset;
margin-top: 5px;
}

.map-btn:hover {
  background: #00c9a8;
}

/* Flight icon style */
.plane-icon {
  font-size: 20px;
  transform: rotate(-10deg);
  opacity: 0.9;
}

/* Distance labels */
.distance-label {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  border: 1px solid #ccc;
  white-space: nowrap;
}
.map-controls {
  display: relative;
  align-items: center;
  gap: 10px;
}
/* ✅ Mobile adjustments */
@media (max-width: 768px) {
  #iran-tour-map {
    height: 300px;
  }

  .map-btn {
    font-size: 0.9rem;
    padding: 8px 14px;
  }

  .map-controls {
    flex-direction: column;
    gap: 8px;
  }

  .distance-label {
    font-size: 11px;
    padding: 2px 5px;
  }
}


/* ============ Entrance fee Card ======== */
.service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 2px solid #e2e2e2;
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.service-card:hover {
  border-color: #0073e6;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.service-card .service-icon {
  font-size: 28px;
  color: #0073e6;
  transition: color 0.25s ease;
}

.service-card .service-info h4 {
  margin: 0 0 4px;
  color: #222;
  font-weight: 600;
  font-size: 1rem;
}

.service-card .service-info p {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
}

.service-card .service-info .price1 {
  font-weight: 600;
  color: #0073e6;
  display: block;
  margin-top: 5px;
  font-size: 0.95rem;
text-align: right;
}
/* 🔴 Emphasize price style (shared for all prices) for entrance fee */
.price1 {
  position: relative;
  display: inline-block;
  z-index: 0;

}

.price1::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -12px;
  width: 60px;
  height: 40px;

  background: url('/wp-content/themes/yazdvoyage-child/assets/icons/emphasize-price-icon.svg') no-repeat center center;
  background-size: contain;
  z-index: -1;
  filter: brightness(0) saturate(100%) invert(42%) sepia(48%) saturate(838%) hue-rotate(314deg) brightness(91%) contrast(108%);
}

/* ✅ When selected */
.service-card.active {
  border-color: #2ecc71;
  background: #f6fff9;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.service-card.active .service-icon {
  color: #2ecc71;
}

.service-card.active .service-info h4,
.service-card.active .service-info .price {
  color: #2ecc71;
}



.entrance-fee-line {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.entrance-fee-line.show {
  opacity: 1;
  max-height: 50px; /* just enough space to show text */
}



.discount-info {
  font-size: 0.9rem;
  color: #27ae60; /* green for savings */
  margin-top: 4px;
  font-weight: 500;
}

@keyframes count-up {
  0% { opacity: 0.2; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

