
/* =========================================
   SAFARAPP MOBILE REDESIGN
   Mobile only - Desktop remains unchanged
========================================= */

@media screen and (max-width: 800px) {

    html {
        scroll-behavior: smooth;
    }

    body {
        background: #f7f9ff;
        overflow-x: hidden;
        padding-bottom: 78px;
        font-family: Vazirmatn, Tahoma, sans-serif;
    }

    .container {
        width: calc(100% - 32px);
        max-width: none;
    }

    /* HEADER */

    .site-header {
        top: 0;
        right: 0;
        left: 0;
        z-index: 30;
        position: absolute;
        padding-top: 12px;
    }

    .nav-wrap {
        width: calc(100% - 40px);
        margin: auto;
        padding: 4px 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    .brand {
        color: #fff;
        font-size: 22px;
        font-weight: 900;
        gap: 8px;
        text-shadow: 0 2px 8px #003a8c66;
    }

    .brand-pin {
        width: 34px;
        height: 34px;
        background: linear-gradient(145deg,#00d4d6,#0872ed);
        border-radius: 50% 50% 50% 5px;
        box-shadow: 0 4px 12px #004caa55;
    }

    .desktop-nav,
    .nav-login,
    .icon-link,
    .mobile-menu {
        display: none !important;
    }

    .nav-actions::before {
        content: "♧";
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        background: #ffffffed;
        color: #0759df;
        border-radius: 50%;
        font-size: 25px;
        box-shadow: 0 4px 14px #123d771c;
    }

    /* HERO */

    .hero {
        min-height: 465px;
        height: auto;
        align-items: flex-end;
        background-position: center center !important;
        background-size: cover !important;
        position: relative;
        border-radius: 0 0 20px 20px;
        overflow: visible;
    }

    .hero-shade {
        background:
            linear-gradient(
                180deg,
                #063b8b18 0%,
                #03275b20 35%,
                #031e4b9c 100%
            );
    }

    .hero-content {
        width: calc(100% - 32px);
        padding-top: 130px;
        padding-bottom: 24px;
        position: relative;
        z-index: 2;
    }

    .hero-copy {
        max-width: 100%;
        margin: 0 0 25px auto;
        text-align: right;
        text-shadow: 0 2px 8px #001d4e99;
    }

    .hero-copy .eyebrow {
        display: none;
    }

    .hero h1 {
        font-size: clamp(26px, 7vw, 36px);
        line-height: 1.55;
        font-weight: 900;
        margin: 0 0 8px;
    }

    .hero-copy p {
        font-size: 13px;
        line-height: 1.9;
        font-weight: 700;
        margin: 0;
    }

    /* SEARCH */

    .search-bar {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 9px;
        border-radius: 35px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        background: #fffffffa;
        box-shadow: 0 8px 25px #082c6740;
        color: #17366f;
    }

    .search-bar input {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        padding: 12px 15px;
        height: 45px;
        font-size: 13px;
        border: 0;
        border-radius: 25px;
        background: #f5f7fc;
        text-align: right;
    }

    .search-bar select {
        min-width: 0;
        width: 100%;
        height: 42px;
        padding: 8px;
        font-size: 12px;
        border: 0;
        border-radius: 20px;
        background: #f5f7fc;
    }

    .search-bar button {
        grid-column: 1 / -1;
        width: 100%;
        height: 42px;
        padding: 8px;
        border-radius: 25px;
        font-size: 13px;
    }

    /* CATEGORY STRIP */

    .category-strip {
        width: calc(100% - 32px);
        margin: 14px auto 0;
        padding: 15px 10px;
        background: #fff;
        border: 1px solid #edf1ff;
        border-radius: 25px;
        box-shadow: 0 7px 22px #244d8c18;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .category-strip::-webkit-scrollbar {
        display: none;
    }

    .category-grid {
        display: flex;
        width: max-content;
        min-width: 100%;
        gap: 5px;
        justify-content: space-between;
    }

    .category-item {
        flex: 0 0 90px;
        min-width: 90px;
        padding: 4px;
        gap: 8px;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.7;
    }

    .category-item span {
        width: 65px;
        height: 65px;
        border-radius: 20px;
        font-size: 32px;
        box-shadow: none;
    }

    .category-item:nth-child(4n+1) span {
        background: #fff0df;
    }

    .category-item:nth-child(4n+2) span {
        background: #e1f0ff;
    }

    .category-item:nth-child(4n+3) span {
        background: #eee3ff;
    }

    .category-item:nth-child(4n+4) span {
        background: #dff8e9;
    }

    /* SECTION TITLES */

    .section {
        padding-top: 27px;
        padding-bottom: 10px;
    }

    .section-head {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-bottom: 15px;
    }

    .section-head .eyebrow {
        display: none;
    }

    .section-head h2 {
        font-size: 17px;
        font-weight: 900;
        line-height: 1.8;
        margin: 0;
        color: #09265f;
    }

    .section-head h2 b {
        color: #ffb51b;
    }

    .text-link {
        flex-shrink: 0;
        font-size: 11px;
        font-weight: 800;
        padding: 7px 10px;
        border: 2px solid #e3eaff;
        border-radius: 25px;
        color: #075ee8;
        white-space: nowrap;
    }

    /* PLACE CARDS */

    .place-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .place-card {
        min-width: 0;
        background: #fff;
        border: 1px solid #e4eaff;
        border-radius: 17px;
        overflow: hidden;
        box-shadow: 0 4px 12px #153b7712;
        transition: none;
    }

    .place-card:hover {
        transform: none;
    }

    .place-photo {
        height: 105px;
        position: relative;
        overflow: hidden;
    }

    .place-photo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .rating {
        bottom: 5px;
        right: 5px;
        padding: 2px 6px;
        font-size: 10px;
        border-radius: 15px;
        background: #fff5dd;
    }

    .place-info {
        min-height: 75px;
        padding: 8px 6px;
        gap: 5px;
        text-align: right;
    }

    .place-info strong {
        font-size: 11px;
        font-weight: 800;
        line-height: 1.8;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .place-info small {
        font-size: 10px;
        color: #7183a5;
        line-height: 1.6;
    }

    /* DESTINATIONS */

    .destinations {
        padding-top: 18px;
        padding-bottom: 8px;
    }

    .dest-map {
        min-height: 220px;
        padding: 18px 12px;
        border-radius: 25px;
        background: linear-gradient(120deg,#dcecff,#f0f6ff);
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
        overflow: hidden;
    }

    .map-copy {
        flex: 1;
        min-width: 0;
    }

    .map-copy .eyebrow {
        font-size: 11px;
    }

    .map-copy h2 {
        font-size: 17px;
        font-weight: 900;
        line-height: 1.8;
        margin: 5px 0;
    }

    .map-copy p {
        font-size: 11px;
        line-height: 1.8;
        margin: 4px 0 12px;
    }

    .map-copy .btn {
        font-size: 11px;
        padding: 9px 12px;
        white-space: nowrap;
    }

    .map-art {
        flex: 0 0 42%;
        font-size: 23px;
        line-height: 2.2;
        text-align: center;
        transform: rotate(-8deg);
    }

    /* APP BANNER */

    .app-banner {
        min-height: 175px;
        margin-top: 12px;
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 23px;
        background-position: center !important;
        background-size: cover !important;
        display: flex;
        align-items: center;
        text-align: right;
        overflow: hidden;
    }

    .app-banner .eyebrow {
        color: #dceeff;
        font-size: 11px;
    }

    .app-banner h2 {
        font-size: 18px;
        line-height: 1.8;
        font-weight: 900;
        margin: 5px 0;
        max-width: 280px;
    }

    .app-banner p {
        font-size: 12px;
        line-height: 1.8;
        margin: 5px 0 12px;
    }

    .app-banner .btn {
        font-size: 12px;
        padding: 9px 18px;
    }

    /* OWNER CTA */

    .owner-cta {
        padding: 20px 15px 30px;
        text-align: center;
    }

    .owner-cta h2 {
        font-size: 17px;
        line-height: 1.8;
    }

    .owner-cta p {
        font-size: 12px;
        line-height: 1.9;
    }

    /* FOOTER */

    .site-footer {
        padding: 20px 0 100px;
    }

    .footer-inner {
        width: calc(100% - 32px);
        display: flex;
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .footer-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        font-size: 11px;
    }

    .footer-inner p {
        font-size: 10px;
        margin: 0;
    }

    /* BOTTOM NAVIGATION */

    .mobile-bottom {
        display: flex !important;
        position: fixed;
        z-index: 1000;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        min-height: 75px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        background: #fffffffa;
        border: 1px solid #edf1ff;
        border-bottom: 0;
        border-radius: 25px 25px 0 0;
        box-shadow: 0 -6px 25px #183d7915;
        display: flex;
        justify-content: space-around;
        align-items: center;
        backdrop-filter: blur(18px);
    }

    .mobile-bottom a {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        color: #52668f;
        font-size: 24px;
        transition: .2s;
    }

    .mobile-bottom a span {
        font-size: 25px;
        line-height: 1.2;
        font-weight: 800;
    }

    .mobile-bottom a small {
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
    }

    .mobile-bottom a.active {
        color: #075ee8;
    }

    .mobile-bottom a.active span {
        color: #075ee8;
        transform: translateY(-2px);
    }

    /* OTHER PAGES */

    .page {
        padding-top: 90px;
        padding-bottom: 35px;
        min-height: 65vh;
    }

    .page-title h1 {
        font-size: 22px;
        line-height: 1.8;
    }

    .form-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-image {
        height: 230px;
    }

    .map-placeholder {
        height: 300px;
    }

    .filters,
    .form-card,
    .panel-card {
        padding: 16px;
    }

    .table-wrap {
        overflow-x: auto;
    }

    .mobile-only {
        display: block;
    }
}

/* SMALL PHONES */

@media screen and (max-width: 380px) {

    .hero {
        min-height: 445px;
    }

    .hero h1 {
        font-size: 27px;
    }

    .category-item {
        flex-basis: 82px;
        min-width: 82px;
    }

    .category-item span {
        width: 58px;
        height: 58px;
    }

    .place-grid {
        gap: 6px;
    }

    .place-photo {
        height: 90px;
    }

    .place-info strong {
        font-size: 10px;
    }

    .mobile-bottom a small {
        font-size: 10px;
    }
}
