/* Go Beyond - Responsive Overrides */

/* ============================================
   Large Screens (max-width: 1200px)
   ============================================ */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

/* ============================================
   Tablets (max-width: 991px)
   ============================================ */
@media (max-width: 991px) {
  .main-section {
    padding: 80px 0;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .features {
    padding: 80px 0;
  }

  .experience-cards {
    padding: 80px 0;
  }

  .testimonial {
    padding: 80px 0;
  }

  .about-section {
    padding: 80px 0;
  }

  .team-grid {
    padding: 80px 0;
  }

  .contact-section {
    padding: 80px 0;
  }

  .pricing-section {
    padding: 80px 0;
  }

  .faq-section {
    padding: 80px 0;
  }

  .panama-stats {
    padding: 40px 0;
  }

  .panama-stats .stat-item {
    margin-bottom: 20px;
  }

  .other-tours {
    padding: 80px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .section-title p {
    font-size: 20px;
  }

  .tour-sidebar {
    position: static;
    margin-top: 30px;
  }

  .synagogue-sidebar {
    position: static;
    margin-top: 30px;
  }

  .synagogue-features {
    grid-template-columns: 1fr;
  }

  .zmanim-widget {
    padding: 24px;
  }

  .zmanim-title {
    font-size: 20px;
  }

  .zmanim-time {
    font-size: 20px;
  }
}

/* ============================================
   Small Tablets (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: clip;
  }

  form div[aria-hidden="true"] {
    display: none !important;
  }

  .main-section {
    padding: 60px 0;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .hero-buttons .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .section-title p {
    font-size: 18px;
  }

  .breadcrumb {
    row-gap: 6px;
    font-size: 13px !important;
    line-height: 1.45;
  }

  .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
  }

  .features {
    padding: 60px 0;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .experience-cards {
    padding: 60px 0;
  }

  .testimonial {
    padding: 60px 0;
  }

  .home1-testm-single {
    padding: 20px;
  }

  .home1-testm-txt p {
    font-size: 16px;
  }

  .about-section {
    padding: 60px 0;
  }

  .about-section h2 {
    font-size: 26px;
  }

  .team-grid {
    padding: 60px 0;
  }

  .contact-section {
    padding: 60px 0;
  }

  .contact-form-card {
    padding: 25px;
  }

  .pricing-section {
    padding: 60px 0;
  }

  .faq-section {
    padding: 60px 0;
  }

  .panama-stats {
    padding: 30px 0;
  }

  .panama-stats .stat-number {
    font-size: 2rem;
  }

  .panama-stats .stat-label {
    font-size: 0.9rem;
  }

  .other-tours {
    padding: 60px 0;
  }

  /* [Fix #2] Partner logos - stack vertically on small tablets */
  .partner-logos {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .partner-logos img {
    height: 40px;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .tour-content {
    padding: 40px 0 60px;
  }

  .tour-content p,
  .restaurant-content p,
  .synagogue-content p {
    line-height: 1.7;
  }

  .tour-content h2,
  .restaurant-content h2,
  .synagogue-content h2 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .tour-booking-card,
  .restaurant-info-card,
  .synagogue-info-card,
  .contact-form-card,
  .contact-info-card {
    border-radius: 12px;
  }

  .tour-booking-card-header,
  .tour-booking-card-body,
  .restaurant-info-card-header,
  .restaurant-info-card-body,
  .synagogue-info-card-header,
  .synagogue-info-card-body {
    padding: 20px;
  }

  .restaurant-detail-item,
  .synagogue-detail-item,
  .service-time-item,
  .feature-item {
    gap: 12px;
  }

  .map-embed-container iframe {
    min-height: 280px;
  }

  .tour-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cruise-overview,
  .dining-packages,
  .sailing-schedule {
    padding: 60px 0;
  }

  .legal-content {
    padding: 60px 0;
  }

  .legal-content h1 {
    font-size: 2rem;
  }

  .sailing-table {
    font-size: 14px;
  }

  .sailing-table th,
  .sailing-table td {
    padding: 10px 12px;
  }

  .restaurants-directory {
    padding: 60px 0 40px;
  }

  /* [Fix #3] WhatsApp float - keep on right, shrink for mobile */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float i {
    font-size: 24px;
  }

  /* [Fix #4] Navbar - consistent sizing on mobile (prevents shift on scroll) */
  .navbar,
  .navbar.scrolled {
    padding: 12px 15px !important;
    transition: background-color 0.3s ease-in-out !important;
  }

  .navbar-brand img {
    height: 32px !important;
    max-width: 180px;
  }

  /* [Fix #6] Inner banner - reduce height */
  .inner-banner {
    height: auto;
    min-height: 0;
    padding: 80px 20px 50px;
  }

  /* [Fix #9] Footer link spacing - tighter on mobile */
  .single-footer-txt ul li {
    margin-bottom: 4px;
  }

  .single-footer-txt ul li a {
    padding: 4px 0;
  }

  .single-footer-item {
    margin-bottom: 30px;
  }

  .footer-content {
    padding: 50px 0 30px;
  }

  /* [Fix #11] Contact page - show info cards first on mobile */
  .contact-section .row {
    flex-direction: column-reverse;
  }

  .contact-section .col-lg-4 {
    margin-bottom: 20px;
  }
}

/* ============================================
   Mobile (max-width: 576px)
   ============================================ */
@media (max-width: 576px) {
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  /* [Fix #6] Inner banner - compact on phones */
  .inner-banner {
    padding: 70px 15px 40px;
  }

  .inner-banner-content h1 {
    font-size: 1.8rem;
  }

  .inner-banner-content p {
    font-size: 1rem;
  }

  .contact-hero {
    min-height: 380px;
  }

  .contact-hero .inner-banner-content h1 {
    font-size: clamp(2rem, 12vw, 2.8rem);
  }

  .contact-hero .inner-banner-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .contact-eyebrow {
    font-size: 11px;
    padding: 7px 12px;
  }

  .contact-intro-panel h2 {
    font-size: 1.55rem;
  }

  .tour-hero-content,
  .inner-banner-content {
    width: 100%;
    padding: 0 18px;
  }

  .tour-hero-content h1 {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
    line-height: 1.12;
  }

  .tour-hero-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .breadcrumb {
    margin-bottom: 18px !important;
  }

  .tour-content p,
  .restaurant-content p,
  .synagogue-content p {
    font-size: 15px;
  }

  .tour-highlights li {
    font-size: 15px;
    gap: 10px;
  }

  .restaurant-detail-item,
  .synagogue-detail-item,
  .service-time-item,
  .feature-item {
    padding: 13px 0;
  }

  .service-time-item,
  .feature-item {
    padding: 14px;
  }

  .restaurant-info-card-body .detail-item,
  .synagogue-info-card-body .detail-item,
  .tour-booking-card-body .detail-item {
    align-items: flex-start;
    font-size: 14px;
  }

  .restaurant-info-card .btn,
  .synagogue-info-card .btn,
  .tour-booking-card .btn {
    min-height: 46px;
    white-space: normal;
  }

  /* [Fix #1] Features section - reduce excessive spacing */
  .features {
    padding: 40px 0;
  }

  .feature-card {
    padding: 20px 15px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    font-size: 1.5rem;
  }

  .feature-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .feature-card p {
    font-size: 14px;
  }

  /* [Fix #8] Section title subtitle - smaller on phones */
  .section-title p {
    font-size: 16px;
  }

  .newsletter {
    padding: 45px 0;
  }

  .newsletter .section-title h2 {
    font-size: 1.7rem;
  }

  .newsletter .section-title p {
    font-size: 1rem;
  }

  .filters {
    margin-top: -40px;
    padding: 20px !important;
  }

  .simple-page-centered h1 {
    font-size: 2rem;
  }

  .simple-page-centered .page-icon {
    font-size: 3.5rem;
  }

  .pricing-card-header .price {
    font-size: 2rem;
  }

  .tour-hero {
    height: 40vh;
  }

  .synagogue-hero {
    height: 35vh;
  }

  .restaurant-hero {
    height: auto;
    min-height: 180px;
    aspect-ratio: 3 / 1;
    background-size: contain;
    background-repeat: no-repeat;
    margin-top: -56px;
    padding-top: 56px;
  }

  .menu-embed-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .menu-embed-container iframe {
    height: 400px;
    min-width: 100%;
  }

  .instagram-embed-container iframe {
    min-height: 500px;
  }

  .zmanim-widget {
    padding: 20px;
  }

  .zmanim-title {
    font-size: 18px;
  }

  .zmanim-time {
    font-size: 18px;
  }

  .zmanim-row {
    padding: 12px 14px;
  }

  .zmanim-label {
    font-size: 14px;
  }

  .zmanim-location {
    display: none;
  }

  .zmanim-location-pills .filter-btn {
    padding: 6px 14px;
    font-size: 13px;
  }

  .zmanim-fast-times {
    flex-direction: column;
    gap: 4px;
  }

  /* [Fix #2] Partner logos - larger on phones for readability */
  .partner-logos img {
    height: 45px;
  }
}

/* ============================================
   Cruise Sailing Cards - Tablet (max-width: 991px)
   ============================================ */
@media (max-width: 991px) {
  .cruise-graphics .img-overlay-text h3 {
    font-size: 18px;
  }

  .cruise-graphics .img-overlay-text .dest {
    font-size: 13px;
  }

  .cruise-graphics .port-stops .port-name {
    font-size: 11px;
  }
}

/* ============================================
   Cruise Sailing Cards - Mobile (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
  .single-package-items {
    max-width: 100%;
    margin: 0 0 20px;
    padding-bottom: 0;
    border-radius: 12px;
  }

  .cruise-graphics {
    aspect-ratio: 16 / 9;
  }

  .card-cruise-logo {
    left: 10px;
    top: 10px;
  }

  .card-cruise-logo img {
    height: auto;
    max-height: 30px;
    max-width: 130px;
  }

  .date-badge {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  .date-badge .month {
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  .date-badge .day {
    font-size: 20px;
  }

  .cruise-graphics .img-overlay-text {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  .cruise-graphics .img-overlay-text h3 {
    font-size: 15px;
    margin-bottom: 1px;
  }

  .cruise-graphics .img-overlay-text .dest {
    font-size: 11.5px;
  }

  .cruise-graphics .port-stops {
    display: none;
  }

  .package-details {
    padding: 10px 14px 12px;
    text-align: center;
  }

  .rabbi-row {
    padding: 5px 0;
    margin-bottom: 5px;
    text-align: center;
  }

  .rabbi-row .rabbi-label {
    font-size: 8px;
    letter-spacing: 0.8px;
    margin-bottom: 0;
  }

  .rabbi-row .rabbi-name {
    font-size: 13px;
  }

  .minyan-badge {
    padding: 5px 0;
    margin-bottom: 5px;
    font-size: 13px;
    justify-content: center;
  }

  .packages-itineraries {
    text-align: center;
  }

  .packages-itineraries ul {
    padding-left: 0;
    list-style: none;
  }

  .packages-itineraries ul li {
    line-height: 20px;
    text-align: center;
  }

  .packages-itineraries ul > li:first-child {
    font-size: 13px;
  }

  .packages-itineraries ul > li:nth-child(2) {
    font-size: 12px;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }

  .packages-itineraries ul > li:nth-child(3) {
    font-size: 12px;
    padding-top: 2px !important;
  }

  .booknow-btn {
    margin-top: 8px !important;
  }

  .booknow-btn ul {
    justify-content: center;
    gap: 10px;
  }

  .booknow-btn .btn.btn-lg.btn-primary {
    padding: 0 24px;
    font-size: 14px;
    width: auto;
    height: 44px;
  }

  .package-details li.whatsapp a {
    width: 44px;
    height: 44px;
    font-size: 24px;
    line-height: 40px;
  }

  .cruise-filters {
    gap: 6px;
  }

  .cruise-filters .filter-btn {
    padding: 6px 14px;
    font-size: 12px;
  }
}
