/* ============================================================
   CHEAP UMRAH PACKAGES PAGE STYLES
   Scoped under #cheapPackagePage — zero conflict with other pages
   ============================================================

   BUGS FIXED:
   1. Removed conflicting * {margin:0;padding:0} reset (navbar.css handles it)
   2. Removed html,body {height:100%} (kills mobile scrolling)
   3. Removed display:none (was hiding everything on standalone page)
   4. Removed scrollbar hiding (accessibility violation)
   5. Added proper bottom padding for WhatsApp widget clearance
   6. Fixed touch-device search bar behavior
   7. Added safe min-height for very short viewports
   ============================================================ */

/* ----------------------------------------------------------
   CSS VARIABLES
   ---------------------------------------------------------- */
#cheapPackagePage {
  --cp-red: #c92a2a;
  --cp-red-dark: #a51d1d;
  --cp-dark: #1e1a17;
  --cp-gray: #4d3e37;
  --cp-light: #f5f0ea;
  --cp-white: #ffffff;
  --whatsapp-green: #25D366;
  --navbar-h: 80px;
}

/* ----------------------------------------------------------
   BASE — Navbar offset for fixed header (standalone page)
   ---------------------------------------------------------- */
#cheapPackagePage {
  font-family: 'Inter', 'Segoe UI', Roboto, system-ui, sans-serif;
  color: var(--cp-dark);
  background: linear-gradient(rgba(66, 65, 65, 0.85), rgba(203, 201, 201, 0.543)),
              url('../Images/Cheap Umrah Package Background.jpg') center/cover fixed no-repeat;
  padding: var(--navbar-h) 20px 80px;
  min-height: 100vh;
  position: relative;
  /* FIX: No overflow-x hidden here — body handles it */
}

#cheapPackagePage .wrap {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------
   HERO BACKGROUND
   ---------------------------------------------------------- */
#cheapPackagePage .bg-photo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 520px;
  background:
    linear-gradient(160deg, rgba(201, 42, 42, 0.96) 0%, rgba(165, 29, 29, 0.92) 40%, rgba(201, 42, 42, 0.6) 70%, rgba(252, 248, 242, 0) 100%),
    url('../Images/Book Umrah Packages UK Cheap Umrah package with 3 4 5 start hotels from Uk.png') center/cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* ----------------------------------------------------------
   INTRO SECTION
   ---------------------------------------------------------- */
#cheapPackagePage .cp-intro {
  text-align: center;
  color: #fff;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  padding-top: 12px;
}

#cheapPackagePage .cp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fcd9d9;
  margin-bottom: 8px;
}

#cheapPackagePage .cp-eyebrow::before,
#cheapPackagePage .cp-eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: #f0b3b3;
  opacity: .7;
}

#cheapPackagePage .cp-intro h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 46px);
  margin: 8px 0 14px;
  letter-spacing: -.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  line-height: 1.15;
}

#cheapPackagePage .cp-intro p {
    max-width: 100% !important;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  text-align: justify;
}

/* ----------------------------------------------------------
   SEARCH BAR
   ---------------------------------------------------------- */
#cheapPackagePage .searchbar {
  position: relative;
  margin: 20px auto 0;
  max-width: 1000px;
  background: var(--cp-white);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(165, 29, 29, 0.15);
  padding: 12px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  z-index: 20;
  border: 1px solid #e4dbcd;
}

#cheapPackagePage .field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--cp-light);
  border: 1.5px solid transparent;
  color: var(--cp-dark);
  font-size: 14px;
  transition: all .2s;
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
}

#cheapPackagePage .field:hover {
  background: #efe8df;
}

#cheapPackagePage .field:focus-within {
  border-color: var(--cp-red);
  background: var(--cp-white);
  box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.12);
}

#cheapPackagePage .field .icon {
  display: flex;
  flex-shrink: 0;
  color: var(--cp-red);
}

#cheapPackagePage .field input,
#cheapPackagePage .field select {
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--cp-dark);
  font-family: inherit;
  width: 100%;
  outline: none;
  height: 100%;
  min-width: 0;
}

#cheapPackagePage .field input::placeholder {
  color: #a59584;
}

#cheapPackagePage .field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#cheapPackagePage .field .chev {
  margin-left: auto;
  color: #a59584;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   BOOK NOW BUTTON
   ---------------------------------------------------------- */
#cheapPackagePage .searchbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  background: var(--cp-red);
  color: var(--cp-white);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: all .25s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(201, 42, 42, 0.35);
}

#cheapPackagePage .searchbtn:hover {
  background: var(--cp-red-dark);
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 42, 42, 0.45);
}

#cheapPackagePage .searchbtn:active {
  transform: scale(0.96);
}

#cheapPackagePage .searchbtn .btn-arrow {
  display: flex;
  align-items: center;
}

/* ----------------------------------------------------------
   SECTION TITLE
   ---------------------------------------------------------- */
#cheapPackagePage .more-title {
  text-align: center;
  margin: 28px 0 10px;
  position: relative;
  z-index: 1;
}

#cheapPackagePage .cp-arch-divider {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border: 2px solid var(--cp-white);
  border-bottom: none;
  border-radius: 48px 48px 0 0;
  position: relative;
}

#cheapPackagePage .cp-arch-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background: var(--cp-white);
}

#cheapPackagePage .cp-arch-divider .arch-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  color: var(--cp-white);
  line-height: 1;
}

#cheapPackagePage .more-title h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 8px;
  color: var(--cp-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.25;
}

#cheapPackagePage .more-title h2.section-heading {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#cheapPackagePage .more-title p {
  color: var(--cp-white);
  font-size: 15px;
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

#cheapPackagePage .more-title p.deposit-msg {
  color: #a51d1d;
  font-weight: 600;
  background: #fce8e8;
  padding: 12px 18px;
  border-radius: 60px;
  display: inline-block;
  margin-top: 6px;
  border: 1px solid #f5c2c2;
  text-shadow: none;
}

/* ----------------------------------------------------------
   CARDS GRID (Popular + Grid)
   ---------------------------------------------------------- */
#cheapPackagePage .cards,
#cheapPackagePage .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
  max-width: 1200px;
  margin: 48px auto 0;
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------
   INDIVIDUAL CARD
   ---------------------------------------------------------- */
#cheapPackagePage .card {
  background: var(--cp-white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 26, 21, 0.08);
  border: 1px solid #e4dbcd;
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  animation: cpRise .6s cubic-bezier(.2, .8, .2, 1) forwards;
  transition: transform .3s ease, box-shadow .3s ease;
}

#cheapPackagePage .cards .card:nth-child(1) { animation-delay: .04s; }
#cheapPackagePage .cards .card:nth-child(2) { animation-delay: .10s; }
#cheapPackagePage .cards .card:nth-child(3) { animation-delay: .16s; }

#cheapPackagePage .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(28, 26, 21, 0.12);
}

@keyframes cpRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------------------------
   CARD IMAGE
   ---------------------------------------------------------- */
#cheapPackagePage .card .cp-img-wrap {
  position: relative;
  padding: 14px 14px 0;
  background: #f7f0e8;
}

#cheapPackagePage .cp-img-wrap img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 120px 120px 12px 12px;
  transition: transform .5s ease;
  background: #ede6dc;
}

#cheapPackagePage .card:hover .cp-img-wrap img {
  transform: scale(1.03);
}

/* ----------------------------------------------------------
   CARD BODY
   ---------------------------------------------------------- */
#cheapPackagePage .card-body {
  padding: 18px 20px 22px;
}

#cheapPackagePage .card-body h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #1e1a17;
  font-family: Georgia, 'Times New Roman', serif;
}

#cheapPackagePage .price {
  font-size: 26px;
  font-weight: 800;
  color: #c92a2a;
  margin: 0 0 4px;
}

#cheapPackagePage .price span {
  font-size: 13px;
  font-weight: 500;
  color: #4d3e37;
}

#cheapPackagePage .duration {
  font-size: 13px;
  color: #4d3e37;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e4dbcd;
}

#cheapPackagePage .includes-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #4d3e37;
  margin-bottom: 8px;
}

#cheapPackagePage .includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 18px;
}

#cheapPackagePage .includes div {
  font-size: 12.5px;
  color: #1e1a17;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-left: 20px;
  word-break: break-word;
}

#cheapPackagePage .includes div::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8f5e9;
  border: 1.5px solid var(--whatsapp-green);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

#cheapPackagePage .includes div::after {
  content: "\2713";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--whatsapp-green);
  font-weight: 700;
  font-size: 9px;
  line-height: 1;
}

/* ----------------------------------------------------------
   BADGE
   ---------------------------------------------------------- */
#cheapPackagePage .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--cp-red);
  color: var(--cp-white);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(201, 42, 42, 0.3);
}

/* ----------------------------------------------------------
   CONTACT BUTTON
   ---------------------------------------------------------- */
#cheapPackagePage .contact-btn {
  width: 100%;
  background: var(--cp-red);
  color: var(--cp-white);
  border: none;
  padding: 13px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .25s;
  min-height: 46px;
  box-shadow: 0 4px 10px rgba(201, 42, 42, 0.25);
  font-family: 'Inter', sans-serif;
}

#cheapPackagePage .contact-btn:hover {
  background: var(--cp-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(201, 42, 42, 0.35);
}

#cheapPackagePage .contact-btn:active {
  transform: scale(0.97);
}

/* ----------------------------------------------------------
   RIPPLE EFFECT
   ---------------------------------------------------------- */
#cheapPackagePage .searchbtn .btn-ripple,
#cheapPackagePage .contact-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: cpRipple .6s linear forwards;
  pointer-events: none;
}

@keyframes cpRipple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ----------------------------------------------------------
   GRID CARDS SCROLL REVEAL
   ---------------------------------------------------------- */
#cheapPackagePage .grid .card {
  opacity: 0;
  transform: translateY(30px);
  animation: none;
  transition: all .5s cubic-bezier(.2, .8, .2, 1);
}

#cheapPackagePage .grid .card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — Tablet (max-width: 900px)
   ============================================================ */
@media (max-width: 900px) {
  #cheapPackagePage .searchbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 10px;
    gap: 6px;
    scrollbar-width: none;
  }

  #cheapPackagePage .searchbar::-webkit-scrollbar {
    display: none;
  }

  #cheapPackagePage .field {
    min-width: 160px;
    flex: 0 0 auto;
    height: 44px;
    padding: 0 12px;
  }

  #cheapPackagePage .searchbtn {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 18px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  #cheapPackagePage {
    --navbar-h: 60px;
    padding: var(--navbar-h) 14px 100px;
  }

  #cheapPackagePage .bg-photo {
    height: 400px;
  }

  #cheapPackagePage .cp-intro {
    padding-top: 8px;
    margin-bottom: 22px;
  }

  #cheapPackagePage .cp-intro h1 {
    font-size: 24px;
  }

  #cheapPackagePage .cp-intro p {
    font-size: 14px;
  }

  #cheapPackagePage .cards,
  #cheapPackagePage .grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 32px;
  }

  #cheapPackagePage .cp-img-wrap img {
    height: 200px;
    border-radius: 90px 90px 8px 8px;
  }

  #cheapPackagePage .more-title {
    margin: 20px 0 6px;
  }

  #cheapPackagePage .field input,
  #cheapPackagePage .field select {
    font-size: 13px;
  }

  #cheapPackagePage .more-title p {
    font-size: 14px;
  }

  #cheapPackagePage .more-title h2 {
    font-size: 20px;
  }
}

/* ============================================================
   RESPONSIVE — Small Mobile (max-width: 420px)
   ============================================================ */
@media (max-width: 420px) {
  #cheapPackagePage {
    --navbar-h: 56px;
    padding: var(--navbar-h) 10px 100px;
  }

  #cheapPackagePage .cp-intro h1 {
    font-size: 21px;
  }

  #cheapPackagePage .cp-img-wrap img {
    height: 170px;
    border-radius: 80px 80px 8px 8px;
  }

  #cheapPackagePage .card-body {
    padding: 14px 16px 18px;
  }

  #cheapPackagePage .price {
    font-size: 22px;
  }

  #cheapPackagePage .card-body h3 {
    font-size: 16px;
  }

  #cheapPackagePage .more-title h2 {
    font-size: 18px;
  }

  #cheapPackagePage .deposit-msg {
    font-size: 13px;
    padding: 10px 14px;
  }
}

/* ============================================================
   RESPONSIVE — Extra Small (max-width: 360px)
   ============================================================ */
@media (max-width: 360px) {
  #cheapPackagePage {
    --navbar-h: 52px;
    padding: var(--navbar-h) 8px 100px;
  }

  #cheapPackagePage .cp-intro h1 {
    font-size: 19px;
  }

  #cheapPackagePage .cp-img-wrap img {
    height: 150px;
  }

  #cheapPackagePage .card-body {
    padding: 12px 14px 16px;
  }

  #cheapPackagePage .price {
    font-size: 20px;
  }

  #cheapPackagePage .includes div {
    font-size: 11.5px;
  }
}

/* ============================================================
   REDUCED MOTION — Accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  #cheapPackagePage,
  #cheapPackagePage * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #cheapPackagePage .card,
  #cheapPackagePage .grid .card {
    opacity: 1;
    transform: none;
  }
}
