/* Consistent container width across all pages */
.footer-copyright .container {
  max-width: 1320px;
}

@media screen and (min-width: 2850px) {
  .package-details .btn.btn-lg.btn-primary {
    width: 160px;
    height: 50px;
  }
}
@media screen and (max-width: 2550px) {
  .package-details .btn.btn-lg.btn-primary {
    width: 160px;
    height: 50px;
  }
}
@media screen and (max-width: 1920px) {
  .package-details .btn.btn-lg.btn-primary {
    width: 160px;
    height: 50px;
  }
}
@media screen and (max-width: 1440px) {
  .package-details .btn.btn-lg.btn-primary {
    width: 160px;
    height: 50px;
  }
  .package-details h3, .package-details h3 a {
    font-size: 22px;
  }
  .packages-itineraries ul > li:nth-child(1), .packages-itineraries ul > li:nth-child(3) {
    font-size: 15px;
  }
  .packages-itineraries ul > li:nth-child(2) {
    font-size: 14px;
  }
}
@media screen and (max-width: 1200px) {}
@media screen and (max-width: 1199px) {
  .banner h1, .inner-banner h1 {
    font-size: 40px;
  }
  .logo a, .logo a:hover, .logo a:focus {
    font-size: 20px;
  }
  .main-menu .nav li {
    padding: 16px 5px 0px;
  }
  .main-menu .nav li a {
    font-size: 14px;
  }
  .region {
    padding: 10px 10px;
    font-size: 20px;
  }
}
@media screen and (max-width: 991px) {
  .main-menu .nav li {
    padding: 20px 5px 0;
  }
  .navbar-collapse {
    padding-right: 40px;
    padding-left: 0;
  }
  .main-menu .nav li a {
    font-size: 13px;
    padding: 11px 1px 29px;
  }
  .dropdown-menu ul, .dropdown-menu ul li {
    text-align: left;
  }
  .book-btn {
    width: 100px;
    font-size: 13px;
  }
}
@media screen and (max-width: 991px) {
  /* Prevent horizontal overflow on tablet */
  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
  }

  /* Fix navbar overflow */
  .navbar {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Fix owl-carousel overflow */
  .owl-carousel,
  .owl-stage-outer {
    max-width: 100%;
  }

  /* Ensure containers don't overflow */
  .container,
  .container-fluid {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Fix main element overflow */
  main {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Fix carousel caption width */
  .carousel-caption {
    max-width: calc(100% - 40px);
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  /* Consistent section padding for tablet - add padding to full-width sections */
  .faq,
  .ship-facts,
  .dining-section,
  .itenary,
  .stateroom-section,
  .packages {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  /* Section titles outside containers need padding too */
  .faq > .section-title,
  .ship-facts > .section-title,
  .packages > .section-title {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Ship facts table - ensure full width with proper margins */
  .ship-facts .table {
    width: 100%;
  }

  /* Stateroom cards - ensure images fill container */
  .stateroom-card .cruise-graphics img,
  .single-package-items .cruise-graphics img,
  .price-card-item .cruise-graphics img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Fix stateroom card container to fill properly */
  .stateroom-card .cruise-graphics,
  .price-card-item .cruise-graphics {
    overflow: hidden;
  }

  /* Filters - 2x2 grid layout for tablet */
  .filters .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .filters .col-md-3,
  .filters .col-md-4 {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

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

  .filters .row {
    margin: 0;
    padding: 0;
  }

  /* Mobile navbar collapse styling */
  .navbar-collapse {
    background: var(--primary-color, #061A60);
    border-radius: 0 0 10px 10px;
    margin-top: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .navbar-collapse .navbar-nav {
    padding: 10px 0;
  }

  .navbar-collapse .navbar-nav > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-collapse .navbar-nav > li:last-child {
    border-bottom: none;
  }

  .navbar-collapse .navbar-nav > li > a {
    padding: 12px 15px !important;
    display: block;
    color: #fff !important;
  }

  /* Mobile dropdown menu */
  .navbar-collapse .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 5px;
    margin-top: 5px;
    padding: 10px 0;
    box-shadow: none;
    display: none;
  }

  /* Force dropdown to show when it has the show class */
  .navbar-collapse .dropdown-menu.show {
    display: block !important;
  }

  .navbar-collapse .dropdown-menu > li > a {
    color: #fff !important;
    padding: 10px 25px !important;
  }

  .navbar-collapse .dropdown-menu > li > a:hover,
  .navbar-collapse .dropdown-menu > li > a:focus {
    background: rgba(255, 255, 255, 0.15) !important;
  }

  /* Contain overflowing sections */
  .testimonial,
  .packages,
  .newsletter,
  .panama-yeshivaweek-promotion,
  .faq,
  .banner,
  .carousel,
  .footer-copyright,
  section,
  footer {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Filter section mobile */
  .filters .row {
    gap: 15px;
  }

  .filters .col-md-3,
  .filters .col-md-4 {
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 767px) {
  /* Prevent horizontal overflow causing extra vertical scroll */
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Inner banner mobile - use auto height with proper padding */
  .inner-banner {
    height: auto !important;
    min-height: auto !important;
    padding: 0;
  }

  /* Push inner banner content below fixed navbar with breathing room */
  .inner-banner-content {
    padding-top: 90px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Normalize cruise liner logo heights for consistency */
  .inner-banner-content > img,
  .inner-banner-content > img.w-20 {
    height: 45px !important;
    width: auto !important;
    max-width: 160px !important;
    margin-bottom: 1rem !important;
    object-fit: contain;
  }

  #sticky-wrapper {
    background: #fff0;
  }
  .sticky-wrapper .navbar-collapse.collapse.in {
    background: rgb(6 26 96);
    width: 100%;
    margin-left: 0;
    padding-left: 15px;
    padding-right: 15px;
    height: 56vh !important;
  }
  .logo {
    float: left;
  }
  .main-menu .navbar-toggle {
    float: right;
    margin: 17px 0;
  }
  .main-menu .nav li a {
    font-size: 14px;
    padding: 0 1px 10px;
    display: inline-block;
  }
  .main-menu .nav a:before {
    bottom: 0;
  }
  .main-menu .navbar-toggle {
    color: var(--neutral-color);
    border: none;
  }
  .navbar-header > a {
    display: flex;
  }
  .navbar-toggle {
    margin-top: -6px;
    margin-right: -10px;
    border: none;
  }
  .main-menu .nav li {
    padding: 15px 0 0 0px;
  }
  .navbar-default .navbar-nav .open .dropdown-menu>li>a {
    color: var(--neutral-color) !important;
  }

  /* Inner banner heading mobile */
  .inner-banner-content h1 {
    font-size: 1.6rem;
    padding: 0;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }

  .inner-banner-content h3 {
    font-size: 1rem;
    padding: 0;
  }

  .banner h1, .inner-banner h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  /* Sailing summary mobile - compact horizontal with wrap */
  .sailing-summary {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px 16px !important;
    font-size: 13px;
    margin-bottom: 0.5rem;
  }

  .sailing-summary p {
    font-size: 13px;
    margin: 0 !important;
    white-space: nowrap;
  }

  .sailing-summary p .icon {
    margin-right: 4px;
  }

  .sticky-wrapper.is-sticky .main-menu .nav a:before {
    bottom: 0;
  }
  .banner h2, .inner-banner h2 {
    font-size: 16px;
  }
  .royal-caribbean-brand ul li {
    width: 40%;
    margin-bottom: 20px;
  }
  .single-package-items {
    margin: 0 auto;
    margin-bottom: 30px;
  }
  .home1-testm-single {
    margin: 0 auto;
  }
  .dining-card-container {
    margin-bottom: 10px;
  }
  .dining-card {
    padding: 32px;
  }
  .kosher-dining h2 {
    font-size: 24px;
  }
  .dining-card h3, .dining-card h4 {
    font-size: 16px;
  }
  .dining-card p {
    font-size: 16px;
  }
  .single-footer-item {
    margin-bottom: 30px;
    text-align: center;
  }
  .footer-logo {
    padding-top: 0;
  }

  /* Panama promo section mobile */
  .panama-yeshivaweek-promotion {
    padding: 50px 15px;
  }

  .panama-yeshivaweek-promotion .pyw-subtitle {
    font-size: 1.2em !important;
    line-height: 1.4 !important;
  }

  .panama-yeshivaweek-promotion .pyw-highlights p {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .panama-yeshivaweek-promotion .pyw-highlights span {
    display: block;
    margin: 5px 0 !important;
  }

  /* Itinerary section mobile */
  .itenary, .ship-facts, .contact-us {
    padding: 60px 15px;
  }

  /* Ship facts table mobile */
  .ship-facts table {
    font-size: 14px;
  }

  .ship-facts table tr td {
    padding: 10px;
    display: block;
    width: 100% !important;
    border-bottom: 1px solid #eee;
  }

  .ship-facts table tr {
    display: block;
    margin-bottom: 0;
  }

  /* Footer mobile - centered layout */
  .footer-content {
    padding: 40px 15px 20px;
  }

  .footer-logo-container-item {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
  }

  .footer-logo-container {
    text-align: center;
  }

  .footer-logo-container p {
    text-align: center;
  }

  .single-footer-txt {
    text-align: center;
  }

  .single-footer-txt ul {
    padding-left: 0;
    list-style: none;
  }

  .single-footer-item h2 {
    text-align: center;
  }

  .foot-copyrights-text {
    text-align: center;
    padding: 20px 15px;
  }

  /* Footer contact button centering */
  .single-footer-item .contact-link {
    justify-content: center !important;
  }

  .single-footer-item .btn-whatsapp {
    display: inline-flex !important;
    margin: 0 auto;
  }

  .single-footer-item .mt-4.pt-3 {
    text-align: center;
  }

  /* FAQ accordion mobile - tighter spacing */
  .accordion-button {
    font-size: 0.9rem;
    padding: 12px 15px;
  }

  .accordion-body {
    padding: 12px 15px;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* FAQ section mobile centering */
  .faq {
    padding: 40px 10px;
  }

  .faq .section-title {
    text-align: center;
    padding: 0 10px;
    margin-bottom: 20px;
  }

  .faq .section-title h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .faq .section-title p {
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  .faq .container {
    margin-top: 20px !important;
  }

  .faq .accordion-item {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
  }

  .faq .accordion-header h4 {
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
    margin: 0;
  }

  .faq .accordion-header h4.accordion-button {
    padding: 12px 40px 12px 15px;
  }

  .faq .accordion-header h4.accordion-button::after {
    position: absolute;
    right: 12px;
  }

  /* About us section mobile */
  .about-us-section {
    padding: 60px 15px;
  }

  .our-commitments {
    padding-top: 60px;
  }

  .feature-box {
    margin-bottom: 20px;
    padding: 25px;
  }

  /* Testimonials mobile */
  .testimonial {
    padding: 60px 15px;
  }

  .home1-testm-txt {
    margin-right: 0;
    padding: 0 15px;
  }

  /* Packages section mobile */
  .packages {
    padding: 60px 15px;
  }

  .packages .section-title {
    text-align: center;
    padding: 0 10px;
    margin-bottom: 30px;
  }

  .packages .section-title h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

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

  /* Filters section mobile - single column stack */
  .filters {
    padding: 20px 15px !important;
    margin: 0 -5px;
  }

  .filters .row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
  }

  .filters .col-md-3,
  .filters .col-md-4 {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    margin-bottom: 0;
  }

  .filters label {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }

  .filters .form-select {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  /* Cruise cards mobile - full width with proper spacing */
  .packages-content .row {
    margin: 0 -10px;
  }

  .packages-content .col-md-6 {
    padding: 0 10px;
    margin-bottom: 20px;
  }

  .single-package-items {
    max-width: 100%;
    margin: 0;
  }

  .package-details {
    padding: 20px 15px;
    text-align: center;
  }

  .package-details h3,
  .package-details h3 a {
    font-size: 1.25rem;
    text-align: center;
  }

  .package-details h4 {
    font-size: 1rem;
    text-align: center;
  }

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

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

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

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

  .booknow-btn .btn {
    padding: 12px 30px;
  }

  /* Newsletter section mobile */
  .newsletter {
    padding: 60px 15px;
    text-align: center;
  }

  .newsletter .section-title {
    text-align: center;
  }

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

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

  .newsletter-form {
    max-width: 100%;
    padding: 0 10px;
  }

  .newsletter .form-group {
    flex-direction: column;
    gap: 15px;
  }

  .newsletter .form-control-wrapper {
    width: 100%;
  }

  .newsletter .form-control {
    width: 100%;
    text-align: center;
  }

  .newsletter .btn-submit {
    width: 100%;
    padding: 12px 20px;
  }

  .newsletter .whatsapp-cta {
    text-align: center;
    padding: 20px 10px;
  }

  .newsletter .whatsapp-cta p {
    font-size: 0.95rem;
  }

  /* Inner banner buttons mobile - improved touch targets */
  .inner-banner .btn,
  .inner-banner .btn.btn-md {
    margin: 6px;
    padding: 12px 24px;
    font-size: 14px;
    min-height: 44px;
    min-width: 120px;
  }

  .inner-banner-content > span.d-flex,
  .inner-banner-content .d-flex {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
  }

  /* Dining packages mobile */
  .dining-packages {
    padding: 60px 15px;
  }

  .dining-packages .section-title {
    text-align: center;
  }

  .dining-packages .row.g-4 {
    margin: 0;
  }

  .dining-packages .col-md-3 {
    padding: 0 10px;
    margin-bottom: 15px;
  }

  .dining-card-2,
  .dining-card-3 {
    padding: 25px 15px;
    text-align: center;
  }

  .dining-card-details h2 {
    font-size: 2rem;
  }

  .dining-card-details p {
    font-size: 0.9rem;
  }

  .rabbi-pic {
    margin-top: 20px;
  }

  /* Timeline / Itinerary mobile */
  .timeline {
    padding-left: 20px;
  }

  .timeline-item {
    padding-left: 20px;
    padding-bottom: 20px;
  }

  .timeline-item strong {
    font-size: 0.9rem;
  }

  .timeline-item p {
    font-size: 0.85rem;
  }

  /* Why Choose section mobile */
  .packages-content .container .section-title {
    padding: 40px 15px;
    text-align: center;
  }

  .packages-content .container .section-title h2 {
    font-size: 1.4rem;
  }

  .packages-content .container .section-title p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Contact page mobile */
  .contact-us .section-title {
    text-align: center;
    padding: 0 15px;
  }

  .contact-us .section-title h2 {
    font-size: 1.5rem;
  }

  /* Hero carousel mobile */
  .carousel-caption {
    padding: 0 20px;
  }

  .carousel-caption img {
    max-width: 120px !important;
    height: auto;
  }

  .carousel-indicators {
    bottom: 10px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 10%;
  }
}
@media screen and (max-width: 660px) {
  .home1-testm-single {
    margin: 0 auto;
  }
  .custom-input-group .form-control {
    padding-left: 10px;
    padding-right: 10px;
    height: 40px;
    font-size: 14px;
  }
  .subscribe-btn {
    height: 40px;
    width: 100px;
    font-size: 14px;
    margin: 0px !important;
  }
}
@media screen and (max-width: 640px) {
  .desc-tabs .nav-tabs > li > a {
    padding: 17px 10px 17px 10px;
  }
}
@media screen and (max-width: 540px) {
  .banner h1, .inner-banner h1 {
    font-size: 24px;
    white-space: normal;
  }
  .banner h2, .inner-banner h2 {
    font-size: 16px;
    line-height: 24px;
  }
  .btn.btn-lg.btn-primary, .btn.btn-lg.btn-secondary {
    width: auto;
    height: 45px;
    font-size: 16px;
  }
  .navbar-header > a {
    display: flex;
  }
  .main-menu .navbar-toggle {
    color: var(--neutral-color);
    border: none;
  }
  .navbar-toggle {
    /* padding: 9px 0px; */
    margin-top: -6px;
    margin-right: -10px;
    border: none;
  }
  .logo a, .logo a:hover, .logo a:focus {
    font-size: 18px;
  }
  .royal-caribbean-brand ul li {
    width: 40%;
    margin-bottom: 20px;
  }
  .section-title h2 {
    font-size: 24px;
    font-weight: bold;
  }
  .section-title p {
    font-size: 20px;
  }
  .dining-card-container {
    margin-bottom: 10px;
  }
  .dining-card-details h2 {
    font-size: 28px;
  }
  .home1-testm-txt {
    padding-top: 0px;
    margin-right: 45px;
  }
  .home1-testm-txt p {
    font-size: 16px;
    max-width: 90%;
  }
  .footer-content {
    padding: 60px 0px 0;
  }
}
@media screen and (max-width: 480px) {
  .single-package-items {
    margin: 0 auto;
    margin-bottom: 30px;
  }
  .single-special-shape-txt {
    left: 30px;
  }
  .home1-testm-txt p {
    font-size: 16px;
    max-width: 90%;
  }
}
@media screen and (max-width: 440px) {
  .desc-tabs .nav-tabs > li > a, .desc-tabs .nav-tabs > li.active > a {
    padding: 17px 10px 17px 10px;
    font-size: 12px;
  }
  .nav-tabs {
    border-bottom: 0;
  }
  .home1-testm-txt p {
    font-size: 16px;
    max-width: 90%;
  }
}
@media screen and (max-width: 350px) {}
@media screen and (max-width: 320px) {
  .region {
    padding: 5px 10px;
    font-size: 16px;
  }
  .package-details h3, .package-details h3 a {
    font-size: 18px;
  }
  .packages-itineraries ul > li:nth-child(1), .packages-itineraries ul > li:nth-child(3), .package-details h4 {
    font-size: 14px;
  }
  .packages-itineraries ul > li:nth-child(2) {
    font-size: 12px;
  }
}

/* Offcanvas - Desktop (inline navbar on right) */
@media (min-width: 992px) {
  .offcanvas {
    position: static !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent !important;
    border: none !important;
    max-width: none !important;
    width: auto !important;
  }

  .offcanvas-header {
    display: none;
  }

  .offcanvas-body {
    padding: 0;
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
  }

  .offcanvas-body .navbar-nav {
    flex-direction: row;
    margin-left: auto;
  }

  .offcanvas-body .navbar-nav > li {
    border: none;
  }

  .offcanvas-body .navbar-nav > li > a {
    display: block;
    padding: 8px 15px;
    color: #fff !important;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
  }

  .offcanvas-body .navbar-nav > li > a:hover {
    background-color: var(--secondary-color, #CC004E);
    color: #fff !important;
    border-radius: 5px;
  }

  .offcanvas-body .dropdown-menu {
    position: absolute;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: none;
    padding: 0;
  }

  .offcanvas-body .dropdown-menu > li > a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    color: #1a2b4a !important;
    text-decoration: none;
  }

  .offcanvas-body .dropdown-menu > li > a:hover {
    background-color: var(--secondary-color, #CC004E);
    color: #fff !important;
  }

  .offcanvas-body .dropdown-toggle::after {
    float: right;
    margin-top: 0.5rem;
  }
}

/* Offcanvas - Mobile styling (let Bootstrap handle show/hide behavior) */
@media (max-width: 991px) {
  .offcanvas {
    background-color: #fff;
    max-width: 300px;
  }

  .offcanvas-header {
    background-color: var(--primary-color);
    border-bottom: none;
    padding: 1rem 1.5rem;
  }

  .offcanvas-header .offcanvas-title {
    color: #fff;
    font-weight: 600;
    margin: 0;
  }

  .offcanvas-header .btn-close {
    filter: invert(1);
  }

  .offcanvas-body {
    padding: 1rem 0;
  }

  .offcanvas-body .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  .offcanvas-body .navbar-nav > li {
    border-bottom: 1px solid #eee;
  }

  .offcanvas-body .navbar-nav > li > a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: #1a2b4a !important;
    font-weight: 500;
    text-decoration: none;
  }

  .offcanvas-body .navbar-nav > li > a:hover {
    background-color: var(--secondary-color, #CC004E);
    color: #fff !important;
  }

  .offcanvas-body .dropdown-menu {
    position: static;
    background: #f8f9fa;
    box-shadow: none;
    border: none;
  }

  .offcanvas-body .dropdown-menu > li > a {
    display: block;
    padding: 0.75rem 2rem;
    color: #1a2b4a !important;
    text-decoration: none;
  }

  .offcanvas-body .dropdown-menu > li > a:hover {
    background-color: var(--secondary-color, #CC004E);
    color: #fff !important;
  }
}