/* PetotelBul — mobil uygulama kabuğu (tab bar, ana sayfa, arama) */

/* Tailwind CDN yüklenmese bile çalışan görünürlük */
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    button.mobile-search-summary.mobile-only {
        display: flex !important;
        flex-direction: column;
    }

    .mobile-search-backdrop.mobile-only,
    .mobile-search-sheet.mobile-only {
        display: block;
    }

    .nav-logo-desktop {
        display: none !important;
    }

    .nav-logo-mobile {
        display: block !important;
    }

    .mobile-tab-bar {
        display: flex !important;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }

    .nav-logo-mobile {
        display: none !important;
    }

    .nav-logo-desktop {
        display: inline-block !important;
    }

    .mobile-tab-bar {
        display: none !important;
    }
}

img.brand-logo {
    display: block;
    object-fit: contain;
}

.brand-logo--on-dark {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.brand-logo--filled {
    filter: drop-shadow(0 2px 6px rgba(255, 107, 53, 0.2));
}

.brand-logo--nav {
    max-height: 2.75rem;
    width: auto;
    max-width: 9rem;
}

.brand-logo--nav-icon {
    width: 2.25rem !important;
    height: 2.25rem !important;
    max-width: 2.25rem !important;
    max-height: 2.25rem !important;
    border-radius: 0;
    box-shadow: none;
}

.brand-logo--footer {
    max-height: 3.5rem;
    max-width: 10rem;
    width: auto;
}

@media (max-width: 767px) {
    #welcomePopup {
        display: none !important;
    }

    body.mobile-app-shell {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
        overflow-x: hidden;
    }

    body.mobile-app-shell.mobile-search-sheet-open {
        overflow: hidden;
    }

    body.mobile-app-shell.mobile-search-sheet-open .mobile-tab-bar {
        z-index: 850;
    }

    body.mobile-app-shell .site-footer {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }

    body.mobile-app-shell .site-footer .site-footer-main,
    body.mobile-app-shell .site-footer .site-footer-extra {
        display: none;
    }

    body.mobile-app-shell .site-footer {
        padding: 1rem 1rem calc(5rem + env(safe-area-inset-bottom, 0px));
        text-align: center;
    }

    body.mobile-app-shell .site-footer .site-footer-copy {
        margin: 0;
        font-size: 0.7rem;
        color: #9ca3af;
    }

    .mobile-tab-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: none;
        align-items: stretch;
        justify-content: space-around;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        box-sizing: border-box;
        padding: 0.35rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
    }

    .mobile-tab-bar-item {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        padding: 0.35rem 0.15rem;
        text-decoration: none !important;
        color: #9ca3af !important;
        background: transparent !important;
        font-size: 0.625rem;
        font-weight: 600;
        border-radius: 0.75rem;
        transition: color 0.15s ease, background 0.15s ease;
        -webkit-tap-highlight-color: transparent;
        box-shadow: none !important;
    }

    .mobile-tab-bar-item.is-active {
        color: #ea580c;
        background: rgba(255, 107, 53, 0.08);
    }

    .mobile-tab-bar-icon {
        font-size: 1.25rem;
        line-height: 1;
    }

    .mobile-tab-bar-label {
        letter-spacing: 0.01em;
    }

    /* Üst nav — mobil sade */
    .nav-glass.nav-glass--mobile-app {
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.98) 0%, rgba(247, 147, 30, 0.98) 100%);
    }

    .nav-glass--mobile-app .nav-mobile-hide {
        display: none !important;
    }

    .nav-glass--mobile-app .nav-mobile-compact {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    /* Ana sayfa — app hero */
    .mobile-home-app {
        background: linear-gradient(165deg, #ff6b35 0%, #f7931e 45%, #ffb347 100%);
        padding: 4.5rem 1rem 1.25rem;
        min-height: auto;
    }

    .mobile-home-app__title {
        font-size: 1.35rem;
        font-weight: 800;
        color: #fff;
        line-height: 1.25;
        margin-bottom: 0.35rem;
        text-align: left;
    }

    .mobile-home-app__subtitle {
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.92);
        text-align: left;
        margin-bottom: 1rem;
        line-height: 1.45;
    }

    .mobile-home-section {
        padding: 1.25rem 1rem 1.5rem;
        background: #f3f4f6;
    }

    .mobile-home-section__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.75rem;
    }

    .mobile-home-section__head h2 {
        font-size: 1.125rem;
        font-weight: 700;
        color: #111827;
    }

    .mobile-home-section__head a {
        font-size: 0.8rem;
        font-weight: 600;
        color: #ea580c;
        text-decoration: none;
    }

    .mobile-category-scroll {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-category-scroll::-webkit-scrollbar {
        display: none;
    }

    .mobile-category-chip {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.5rem 0.85rem;
        border-radius: 9999px;
        background: #fff;
        border: 1px solid #e5e7eb;
        font-size: 0.8rem;
        font-weight: 600;
        color: #374151;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .mobile-category-chip i {
        color: #ea580c;
    }

    .mobile-card-scroll {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .mobile-card-scroll::-webkit-scrollbar {
        display: none;
    }

    .mobile-provider-card {
        flex: 0 0 78%;
        max-width: 280px;
        scroll-snap-align: start;
        background: #fff;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid #f3f4f6;
    }

    .mobile-provider-card__cover {
        position: relative;
        height: 8.5rem;
        background: linear-gradient(135deg, #ff6b35, #f7931e);
        display: block;
        overflow: hidden;
    }

    .mobile-provider-card__cover--linked {
        text-decoration: none;
    }

    .mobile-provider-card__cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .mobile-provider-card__cover-fallback {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        color: #fff;
        font-size: 2rem;
    }

    .mobile-provider-card__body {
        padding: 0.75rem 0.85rem 1rem;
    }

    .mobile-provider-card__body h3 {
        font-size: 0.95rem;
        font-weight: 700;
        color: #111827;
        margin-bottom: 0.2rem;
    }

    .mobile-provider-card__title-link {
        color: inherit;
        text-decoration: none;
    }

    .mobile-provider-card__title-link:hover {
        color: #ea580c;
    }

    .mobile-provider-card__price {
        font-size: 0.8rem;
        font-weight: 700;
        color: #ea580c;
        margin-bottom: 0.65rem;
    }

    .mobile-provider-card__meta {
        font-size: 0.75rem;
        color: #6b7280;
        margin-bottom: 0.5rem;
    }

    .mobile-provider-card__actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-provider-card__actions a {
        width: 100%;
        text-align: center;
        padding: 0.55rem 0.75rem;
        border-radius: 0.65rem;
        font-size: 0.8rem;
        font-weight: 600;
        text-decoration: none;
        line-height: 1.25;
    }

    /* Mobil arama — özet pill + tam ekran sheet */
    .mobile-search-wrap {
        position: relative;
    }

    .mobile-search-summary {
        width: 100%;
        text-align: left;
        background: #fff;
        border: none;
        border-radius: 1.25rem;
        padding: 0.85rem 1rem;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        gap: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-search-summary-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.65rem 0;
        border-bottom: 1px solid #f3f4f6;
    }

    .mobile-search-summary-row:last-child {
        border-bottom: none;
        padding-bottom: 0.15rem;
    }

    .mobile-search-summary-row i {
        width: 1.25rem;
        text-align: center;
        color: #ea580c;
        font-size: 0.95rem;
    }

    .mobile-search-summary-row small {
        display: block;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #9ca3af;
    }

    .mobile-search-summary-row span {
        display: block;
        font-size: 0.875rem;
        font-weight: 600;
        color: #111827;
    }

    .mobile-search-summary-cta {
        margin-top: 0.65rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem;
        border-radius: 9999px;
        background: linear-gradient(135deg, #ff6b35, #f7931e);
        color: #fff;
        font-weight: 700;
        font-size: 0.9rem;
    }

    .mobile-search-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 950;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .mobile-search-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-search-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 960;
        max-height: min(92vh, calc(100dvh - 0.5rem));
        background: #fff;
        border-radius: 1.25rem 1.25rem 0 0;
        padding: 0 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
        transform: translateY(105%);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.18);
        visibility: hidden;
        pointer-events: none;
    }

    .mobile-search-sheet.is-open {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-search-backdrop:not(.is-visible) {
        visibility: hidden;
    }

    .mobile-search-sheet-handle {
        width: 2.5rem;
        height: 0.25rem;
        background: #d1d5db;
        border-radius: 9999px;
        margin: 0.65rem auto 0.75rem;
    }

    .mobile-search-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.5rem;
    }

    .mobile-search-sheet-head h2 {
        font-size: 1.125rem;
        font-weight: 800;
        color: #111827;
    }

    .mobile-search-sheet-close {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 9999px;
        border: 1px solid #e5e7eb;
        background: #fff;
        color: #374151;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-search-sheet:not(.is-open) .airbnb-search-form-host {
        display: none;
    }

    .mobile-search-sheet.is-open .airbnb-search-form-host {
        display: block;
    }

    .airbnb-search--mobile-app {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        border-radius: 1rem;
        padding: 0.35rem;
        box-shadow: none;
        background: #f9fafb;
        border: 1px solid #f3f4f6;
    }

    .airbnb-search--mobile-app .airbnb-search-field {
        flex: 0 0 auto !important;
        min-height: 0;
        border: 1px solid #e5e7eb;
        border-radius: 0.75rem;
        background: #fff;
        padding: 0.45rem 0.7rem 0.5rem;
        margin-bottom: 0;
    }

    .airbnb-search--mobile-app .airbnb-search-field label {
        margin-bottom: 0.05rem;
        font-size: 0.625rem;
        line-height: 1.2;
    }

    .airbnb-search--mobile-app .airbnb-search-field input,
    .airbnb-search--mobile-app .airbnb-service-picker-trigger {
        font-size: 0.875rem;
        line-height: 1.3;
        min-height: 0;
    }

    .airbnb-search--mobile-app .airbnb-date-picker {
        min-height: 1.35rem;
    }

    .airbnb-search--mobile-app .airbnb-date-picker__display {
        font-size: 0.875rem;
    }

    .airbnb-search--mobile-app .airbnb-search-divider,
    .airbnb-search--mobile-app .airbnb-search-field--hide-mobile {
        display: none;
    }

    .airbnb-search--mobile-app .airbnb-search-submit {
        width: 100%;
        height: 2.75rem;
        margin: 0.15rem 0 0;
        border-radius: 9999px;
        font-size: 0.9375rem;
    }

    .airbnb-near-me--mobile-block {
        width: 100%;
        justify-content: center;
        margin-top: 0.75rem;
    }

    /* Genel mobil düzeltmeler */
    .page-hero {
        padding-top: 5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .services-map-layout {
        min-height: calc(100vh - 12rem);
    }

    .services-map-canvas {
        min-height: 50vh;
    }

    .booking-layout {
        flex-direction: column;
    }

    .max-w-7xl {
        max-width: 100%;
    }

    img, video {
        max-width: 100%;
        height: auto;
    }

    .store-cover {
        min-height: 10rem;
    }

    .auth-card {
        margin: 0.5rem;
        border-radius: 1.25rem !important;
    }

    .panel-main-shell {
        overflow-x: hidden;
    }

    .panel-main-shell main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .panel-sidebar-modern {
        max-width: 100%;
    }

    #mobileSidebar:not(.hidden) {
        max-height: 70vh;
        overflow-y: auto;
    }

    .booking-search-bar {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .services-map-toolbar {
        padding-top: 5.5rem !important;
    }

    .service-product-card.glass-card {
        overflow: hidden;
    }
}

@media (min-width: 768px) {
    .mobile-search-summary,
    .mobile-search-backdrop,
    .mobile-search-sheet {
        display: none !important;
    }

    .mobile-search-wrap .airbnb-search-form-host {
        display: block !important;
    }
}
