/**
 * Homepage mobile / tablet layout polish
 * Loaded after mobile.css — overrides conflicting legacy rules
 */

/* ── Global homepage rhythm ── */
@media (max-width: 991px) {
    main.py-0 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .page-home .container,
    body:not(.admin-body) .footer-seaction .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ── Homepage mobile navbar (fix logo clipping / nav riding too high) ── */
@media (max-width: 991px) {
    .page-home .header-seaction::after {
        top: 0 !important;
    }

    .page-home .header-seaction > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100%;
    }

    .page-home .header-seaction .navbar {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: auto !important;
        min-height: 58px;
        margin: 0 !important;
        padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px !important;
        border-radius: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 8px;
        box-sizing: border-box;
    }

    .page-home .header-seaction .navbar > a {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        flex: 0 1 auto;
        min-width: 0;
        margin: 0 !important;
        z-index: 2;
    }

    .page-home .header-seaction .navbar a img {
        position: static !important;
        top: auto !important;
        left: auto !important;
        display: block !important;
        height: 42px !important;
        width: auto !important;
        max-width: min(180px, 58vw) !important;
        object-fit: contain;
    }

    .page-home .header-seaction .navbar-toggler {
        margin-left: auto;
        flex-shrink: 0;
        align-self: center;
    }

    .page-home .header-seaction .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
    }

    .page-home #myHeader.sticky .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        z-index: 1050 !important;
        padding-top: calc(10px + env(safe-area-inset-top, 0px)) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    }
}

/* ── Hero ── */
@media (max-width: 991px) {
    .header-seaction {
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden;
    }

    .header-seaction::after {
        background: rgba(0, 0, 0, 0.52) !important;
    }

    .header-seaction .video-banner-container {
        position: relative;
        width: 100%;
        min-height: 420px;
        max-height: 520px;
    }

    .header-seaction .bg-video {
        height: 100% !important;
        min-height: 420px;
        max-height: 520px;
        object-fit: cover;
    }

    .banner-content {
        margin: 24px 0 32px !important;
        padding: 0 16px 8px !important;
        text-align: center;
    }

    .banner-content h2 {
        font-size: clamp(22px, 6vw, 30px) !important;
        line-height: 1.25 !important;
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
    }

    .banner-content p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        max-width: 520px;
        margin-left: auto !important;
        margin-right: auto !important;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    }

    .home-reviews-hero-badge {
        flex-wrap: wrap;
        justify-content: center;
        white-space: normal;
        max-width: 100%;
    }

    .booking-form {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        width: 100% !important;
        max-width: 420px;
        margin: 20px auto 0 !important;
        padding: 16px !important;
        border-radius: 16px !important;
        background: #fff !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    }

    .booking-form .mb-3 {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .booking-form .mb-3 input,
    .booking-form .mb-3 select {
        min-height: 44px;
        border-radius: 10px;
        border-color: #d1d5db;
    }

    .booking-form .d-grid {
        display: block !important;
        width: 100% !important;
    }

    .booking-form button {
        width: 100% !important;
        min-height: 46px;
        border-radius: 10px !important;
        font-size: 15px !important;
        font-weight: 600;
    }
}

/* ── Deals ── */
@media (max-width: 991px) {
    .deals-section {
        padding: 48px 0 !important;
    }

    .deals-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        margin-bottom: 24px !important;
    }

    .deals-header > div {
        width: 100%;
    }

    .deals-header h2 {
        font-size: clamp(22px, 5vw, 28px) !important;
        line-height: 1.25 !important;
    }

    .deals-header p {
        margin-bottom: 4px;
    }

    .view-all-btn-11 {
        width: auto !important;
        min-width: 140px;
        align-self: center;
    }

    .deals-section .col-md-4 {
        width: 100%;
    }

    .deal-card {
        height: 300px !important;
        min-height: 280px;
        border-radius: 14px;
    }

    .deal-content {
        padding: 20px 16px !important;
        gap: 16px !important;
    }

    .deal-title {
        font-size: clamp(20px, 5vw, 28px) !important;
        line-height: 1.2 !important;
    }

    .deal-days,
    .deal-price {
        line-height: 1.3 !important;
    }

    .deal-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* ── Why travel with us + counters ── */
@media (max-width: 991px) {
    .why-travel-with {
        padding: 48px 0 !important;
    }

    .why-travel-with-left img,
    .why-travel-with-left picture img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: 14px;
    }

    .why-travel-with-right {
        padding: 24px 0 0 !important;
    }

    .why-travel-with-right h2 {
        font-size: clamp(22px, 5vw, 28px) !important;
    }

    .why-travel-with-right p.visitingPlaces,
    .why-travel-with-right p.partner1 {
        line-height: 1.6 !important;
        font-size: 14px !important;
    }

    .why-travel-with .counter-section {
        padding: 16px 12px !important;
        margin-top: 24px !important;
        gap: 0;
        border-radius: 12px;
    }

    .why-travel-with .counter-section .container {
        padding: 0 !important;
        max-width: 100%;
    }

    .why-travel-with .counter-section .row {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 0 !important;
    }

    .why-travel-with .counter-section .col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 0 4px !important;
    }

    .why-travel-with .counter-box {
        text-align: center;
    }

    .why-travel-with .counter-box h3,
    .why-travel-with .main-counter-box h3 {
        font-size: clamp(18px, 4.5vw, 24px) !important;
        margin: 4px 0 !important;
    }

    .why-travel-with .counter-box p {
        font-size: 10px !important;
        line-height: 1.25 !important;
        word-break: break-word;
    }

    .main-counter-box {
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .why-travel-with .counter-section .row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .why-travel-with .counter-box p {
        font-size: 12px !important;
    }
}

/* ── Explorer slider ── */
@media (max-width: 991px) {
    .explore-seaction {
        margin: 48px 0 0 !important;
        overflow: hidden;
    }

    .main-parent-explore {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .explore-europe h2 {
        font-size: clamp(22px, 5vw, 28px) !important;
    }

    .explore-seaction .blaze-prev,
    .explore-seaction .blaze-next,
    .explore-seaction .explore-world-nav {
        width: 40px;
        height: 40px;
    }
}

/* ── Featured tours ── */
@media (max-width: 991px) {
    .featured-tours-seaction {
        margin: 48px 0 0 !important;
        padding-bottom: 8px;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .featured-tours-seaction > .container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .featured-tours-seaction h2.plan-trip,
    .featured-tours-seaction h2 {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: clamp(20px, 5vw, 24px) !important;
        line-height: 1.3 !important;
        text-transform: none;
        margin-bottom: 4px;
    }

    .featured-tours-seaction > .container > a {
        float: none !important;
        display: inline-flex;
        align-items: center;
        width: auto !important;
        margin-bottom: 8px;
        font-size: 14px !important;
        padding: 10px 16px !important;
        align-self: flex-start;
    }

    p.feature-tour-11 {
        margin-bottom: 4px;
    }

    .featured-tours-seaction-inner {
        margin-top: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box;
    }

    .featured-tours-seaction-inner-box-left {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    .featured-tours-seaction-inner-box-left ul {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .featured-tours-seaction-inner-box-left ul li,
    .featured-tours-seaction-inner-box-left ul li.featured-tour-card {
        display: block !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
        box-shadow: none;
        border: 0;
        background: transparent;
    }

    .featured-tour-card__link {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: 0 2px 20px rgba(0, 94, 139, 0.1);
        border: 1px solid #ececec;
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
    }

    .featured-tour-card__image {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto;
    }

    .featured-tour-card__image img,
    .featured-tour-card__image picture,
    .featured-tour-card__image picture img {
        width: 100% !important;
        max-width: 100% !important;
        height: 210px !important;
        object-fit: cover !important;
        display: block !important;
    }

    .featured-tour-card__body {
        width: 100% !important;
        box-sizing: border-box;
    }

    .featured-tour-card__meta-item span {
        word-break: break-word;
    }

    .featured-tours-left-image {
        float: none !important;
        width: 100% !important;
    }

    .featured-tours-left-image img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover;
    }

    .featured-tours-seaction-inner-box-right {
        position: relative !important;
        top: 0 !important;
        margin-top: 20px !important;
        width: 100% !important;
        border-radius: 14px;
        overflow: hidden;
    }

    .featured-tours-seaction-inner-box-right img,
    .featured-tours-seaction-inner-box-right picture,
    .featured-tours-seaction-inner-box-right picture img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 220px;
        max-height: 360px;
        object-fit: cover;
        display: block;
    }

    .featured-text-overlay h3 {
        font-size: clamp(22px, 6vw, 32px) !important;
        line-height: 1.2 !important;
    }

    .featured-text-overlay {
        padding: 16px !important;
    }
}

/* ── Gallery ── */
@media (max-width: 767px) {
    .gallery-section {
        margin: 48px 0 !important;
        padding: 48px 0 !important;
    }

    .gallery-section h2 {
        font-size: clamp(22px, 5vw, 28px) !important;
    }

    .feature-gallery-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 220px !important;
        gap: 14px !important;
    }

    .feature-card:nth-child(n) {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    .feature-card {
        border-radius: 16px;
    }
}

/* ── Testimonials ── */
@media (max-width: 991px) {
    .home-reviews-section {
        padding: 48px 0 !important;
    }

    .home-reviews-head {
        padding: 0 4px;
    }

    .home-reviews-head h2 {
        font-size: clamp(22px, 5vw, 28px) !important;
    }

    .home-reviews-google-badge {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        white-space: normal;
    }

    .home-reviews-google-badge__meta {
        white-space: normal;
    }

    .testimonal-slider .blaze-prev.left-right,
    .testimonal-slider .blaze-next.left-right {
        display: none !important;
    }

    .home-review-card {
        min-height: auto !important;
    }

    .home-review-text {
        max-height: none !important;
    }
}

/* ── Get started CTA ── */
@media (max-width: 991px) {
    .get-started-today {
        height: auto !important;
        min-height: 280px;
        padding: 56px 16px !important;
        background-attachment: scroll !important;
    }

    .get-started-today h2 {
        font-size: clamp(22px, 5.5vw, 32px) !important;
        line-height: 1.3 !important;
    }

    .button-get {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 24px !important;
    }

    .button-get a {
        width: 100% !important;
        max-width: 320px;
        margin: 0 !important;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ── About home ── */
@media (max-width: 991px) {
    .about-home-seaction {
        margin: 48px 0 0 !important;
        padding: 0 0 8px;
    }

    .about-home-seaction-box-left {
        padding: 0 !important;
        margin-bottom: 20px;
    }

    .about-home-seaction h2 {
        font-size: clamp(20px, 5vw, 24px) !important;
    }

    .about-home-seaction p {
        line-height: 1.6 !important;
    }

    .about-home-seaction-box img {
        border-radius: 14px;
        margin-top: 0 !important;
    }
}

/* ── Blogs ── */
@media (max-width: 991px) {
    .recent-blog-seaction {
        padding: 48px 0 !important;
        margin: 0 !important;
    }

    .recent-blog-seaction h2 {
        font-size: clamp(22px, 5vw, 28px) !important;
        margin-bottom: 24px !important;
        text-align: center;
    }

    .recent-blog-seaction .col-md-3 {
        width: 100% !important;
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 16px;
    }

    .recent-blog-seaction-box {
        height: auto !important;
    }

    .recent-blog-seaction-box img {
        height: 200px !important;
        object-fit: cover;
    }

    .blog-content h3 {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
}

/* ── Newsletter ── */
@media (max-width: 991px) {
    .newslatter-seaction {
        padding: 48px 16px !important;
        text-align: center;
    }

    .newslatter-seaction h2 {
        font-size: clamp(20px, 5vw, 26px) !important;
        line-height: 1.35 !important;
    }

    .newslatter-seaction p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .news-later-input {
        width: 100% !important;
        margin-top: 24px !important;
    }

    .news-later-input-inner {
        width: 100% !important;
        max-width: 480px;
        border-radius: 16px !important;
        padding: 16px !important;
    }

    .news-later-input-inner form {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100%;
    }

    .news-later-input-inner input {
        width: 100% !important;
        border-radius: 10px !important;
        min-height: 44px;
        box-sizing: border-box;
    }

    .news-later-input-inner button {
        width: 100% !important;
        border-radius: 10px !important;
        min-height: 46px;
    }
}

/* ── Footer ── */
@media (max-width: 991px) {
    .footer-seaction {
        padding: 48px 0 24px !important;
    }

    .footer-seaction .row {
        row-gap: 8px;
    }

    .footer-seaction .col-md-4,
    .footer-seaction .col-md-2 {
        width: 100% !important;
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 0 !important;
    }

    .footer-seaction-box {
        margin-bottom: 20px;
    }

    .footer-seaction-box p {
        width: 100%;
    }

    .footer-seaction-box h3 {
        font-size: 15px !important;
        margin-bottom: 4px;
    }

    .social-footer {
        margin-top: 12px;
    }

    .copy-right {
        margin-top: 24px !important;
        padding-top: 20px !important;
    }

    .copy-right p {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
}

/* ── Explorer World slider (base) ── */
.explore-world-wrap {
    flex: 1;
    min-width: 0;
    width: 100%;
    position: relative;
    padding: 0 52px;
    box-sizing: border-box;
}

.explore-world-slider .blaze-track-container {
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
}

.explore-world-slider .blaze-track {
    gap: 0 !important;
}

.explore-world-slider .slide {
    min-width: 0 !important;
    display: flex !important;
    justify-content: center;
}

.explore-world-slider .slide > img {
    width: auto !important;
    height: auto !important;
    transform: none !important;
}

.explore-world-slider .slide img:hover {
    transform: none !important;
    box-shadow: none !important;
}

.explore-world-nav {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 2px solid #ee5a36;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ee5a36;
    z-index: 5;
    padding: 0;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.explore-world-nav:hover {
    background: #ee5a36;
    color: #fff;
    border-color: #ee5a36;
}

.explore-world-nav--prev {
    left: 0 !important;
    right: auto !important;
}

.explore-world-nav--next {
    right: 0 !important;
    left: auto !important;
}

/* ── Featured tour cards (base) ── */
.featured-tour-card {
    list-style: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.featured-tour-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.featured-tour-card__image {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.featured-tour-card__image img,
.featured-tour-card__image picture {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.featured-tour-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.featured-tour-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
    font-size: 13px;
    color: #64748b;
}

.featured-tour-card__price strong {
    color: #ee5a36;
    font-size: 18px;
    font-weight: 700;
}

.featured-tour-card__price-label {
    font-size: 12px;
    color: #94a3b8;
}

.featured-tour-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
}

.featured-tour-card__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.featured-tour-card__meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}

.featured-tour-card__meta-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
}

.featured-tour-card__meta-item i {
    flex-shrink: 0;
    width: 16px;
    margin-top: 2px;
    text-align: center;
    font-size: 14px;
    color: #ee5a36;
}

.featured-tour-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.featured-tour-card__rating i {
    font-size: 12px;
    color: #f59e0b;
}

.featured-tour-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 4px;
    padding: 9px 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ee5a36, #ff7400);
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.featured-tour-card__cta i {
    font-size: 12px;
}

.featured-tours-seaction-inner-box-left ul li.featured-tour-card {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .explore-world-wrap {
        padding: 0 40px;
        margin-top: 4px;
    }

    .explore-world-nav {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .featured-tours-seaction .row {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .featured-tours-seaction .col-md-8,
    .featured-tours-seaction .col-md-4 {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        flex: 0 0 100%;
        width: 100%;
    }

    .featured-tour-card__body {
        padding: 12px 14px 14px;
    }
}
