/* ============================================
   PROPHET GUESTS - RESPONSIVE STYLES
   ============================================ */

/* ------------------------------------------
   BREAKPOINTS:
   - xs: 0px+
   - sm: 480px+
   - md: 768px+
   - lg: 1024px+
   - xl: 1280px+
   ------------------------------------------ */

/* ------------------------------------------
   MOBILE FIRST BASE (0px+)
   ------------------------------------------ */

/* ------------------------------------------
   SMALL DEVICES (480px+)
   ------------------------------------------ */
@media (min-width: 480px) {
  .container {
    --container-pad: 1.5rem;
  }
}

/* ------------------------------------------
   MEDIUM DEVICES (768px+)
   ------------------------------------------ */
@media (min-width: 768px) {
  .container {
    --container-pad: 2rem;
  }
  
  /* Show/hide utilities */
  .hide-md {
    display: none !important;
  }
  
  .show-md {
    display: block !important;
  }
  
  .flex-md {
    display: flex !important;
  }
}

/* ------------------------------------------
   LARGE DEVICES (1024px+)
   ------------------------------------------ */
@media (min-width: 1024px) {
  .container {
    --container-pad: 2.5rem;
  }
  
  .hide-lg {
    display: none !important;
  }
  
  .show-lg {
    display: block !important;
  }
  
  .flex-lg {
    display: flex !important;
  }
}

/* ------------------------------------------
   EXTRA LARGE DEVICES (1280px+)
   ------------------------------------------ */
@media (min-width: 1280px) {
  .container {
    --container-pad: 3rem;
  }
}

/* ------------------------------------------
   MAX-WIDTH BREAKPOINTS (Desktop → Mobile)
   ------------------------------------------ */

/* Large tablets and below (≤1024px) */
@media (max-width: 1024px) {
  /* Typography */
  .display-1 {
    font-size: var(--text-6xl);
  }
  
  .display-2 {
    font-size: var(--text-5xl);
  }
  
  .section-title {
    font-size: var(--text-4xl);
  }
  
  /* Grid layouts */
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Split layouts */
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  /* Header */
  .nav {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
  }
  
  /* Packages */
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .star-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  /* Package detail */
  .package-detail__layout {
    grid-template-columns: 1fr;
  }
  
  .package-sidebar {
    position: static;
    order: -1;
  }
}

/* Tablets and below (≤768px) */
@media (max-width: 768px) {
  /* Typography */
  .display-1 {
    font-size: var(--text-5xl);
  }
  
  .display-2 {
    font-size: var(--text-4xl);
  }
  
  .display-3 {
    font-size: var(--text-3xl);
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
  
  /* Spacing */
  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
  
  /* Grid layouts */
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  
  /* Hero */
  .hero__title {
    font-size: var(--text-5xl);
  }
  
  .hero__subtitle {
    font-size: var(--text-lg);
  }
  
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  /* Trust bar */
  .trust-bar__content {
    flex-wrap: wrap;
    gap: var(--space-6);
  }
  
  .trust-bar__item {
    flex: 1 1 calc(50% - var(--space-6));
    justify-content: center;
  }
  
  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer__bottom-content {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
  
  /* Packages */
  .packages-grid,
  .star-categories__grid,
  .cities-grid,
  .blog-grid,
  .seasonal-grid {
    grid-template-columns: 1fr;
  }
  
  .package-card__actions {
    flex-direction: column;
    display: flex !important;
  }
  
  .package-card__actions .btn {
    width: 100%;
    justify-content: center !important;
    text-align: center;
  }
  
  /* Filters */
  .filters__content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filters__select {
    width: 100%;
  }
  
  /* Package detail */
  .package-header__title {
    font-size: var(--text-3xl);
  }
  
  .package-inclusions__grid,
  .package-hotels__grid {
    grid-template-columns: 1fr;
  }
  
  .mobile-sticky-bar {
    display: block;
  }
  
  /* Blog */
  .blog-single__title {
    font-size: var(--text-3xl);
  }
  
  .blog-single__meta {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  /* Forms */
  .form__grid {
    grid-template-columns: 1fr;
  }
  
  /* Topbar */
  .topbar__left .trust-badge,
  .topbar__hours {
    display: none;
  }
  
  /* Contact */
  .contact-form-box {
    padding: var(--space-6);
  }
  
  /* Logo */
  .logo__icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }
  
  .logo__name {
    font-size: var(--text-xl);
  }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
  /* Typography */
  .display-1 {
    font-size: var(--text-4xl);
  }
  
  .hero__title {
    font-size: var(--text-4xl);
  }
  
  .section-title {
    font-size: var(--text-2xl);
  }
  
  /* Container */
  .container {
    --container-pad: 1rem;
  }
  
  /* Cards */
  .card__content,
  .package-card__content,
  .blog-card__content {
    padding: var(--space-4);
  }
  
  /* Buttons */
  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-xs);
  }
  
  /* Package sidebar */
  .package-sidebar__box {
    padding: var(--space-6);
  }
  
  .package-sidebar__current {
    font-size: var(--text-4xl);
  }
  
  /* Chatbot */
  .chat-container {
    width: calc(100vw - 32px);
    height: 70vh;
    right: -8px;
  }
}

/* ------------------------------------------
   LANDSCAPE ORIENTATION
   ------------------------------------------ */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-20) 0;
  }
  
  .hero__scroll {
    display: none;
  }
}

/* ------------------------------------------
   HIGH DPI / RETINA DISPLAYS
   ------------------------------------------ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Adjustments for high-DPI screens if needed */
}

/* ------------------------------------------
   DARK MODE (Optional - Future Proof)
   ------------------------------------------ */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here */
}

/* ------------------------------------------
   PRINT STYLES
   ------------------------------------------ */
@media print {
  .header,
  .footer,
  .mobile-sticky-bar,
  .chat-widget,
  .btn {
    display: none !important;
  }
  
  .section {
    padding: var(--space-8) 0;
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }
  
  a {
    text-decoration: none;
    color: #000;
  }
  
  .package-card,
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}
