/* ==========================================
   MOBILE-DEDICATED HOME PAGE STYLES
   App-like mobile interface for Port Barton
   ========================================== */

/* ==========================================
   DESKTOP STYLES (default - above 768px)
   ========================================== */

/* Hide mobile elements on desktop */
.mobile-only,
.mobile-top-bar,
.mobile-quick-actions,
.mobile-bottom-nav,
.mobile-footer,
.mobile-search-overlay,
.mobile-menu-overlay {
    display: none !important;
}

/* ==========================================
   MOBILE STYLES (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {

    /* Show mobile elements */
    .mobile-only {
        display: block !important;
    }

    /* Hide desktop elements */
    .desktop-only {
        display: none !important;
    }

    /* Hide desktop header and footer */
    header.desktop-only,
    footer.desktop-only {
        display: none !important;
    }

    /* ==========================================
       MOBILE TOP BAR
       ========================================== */
    .mobile-top-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: linear-gradient(135deg, #0a2463 0%, #1e3a8a 100%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 16px !important;
        z-index: 1000 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-logo-icon {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-logo-icon i {
        color: #fbbf24;
        font-size: 1.2rem;
    }

    .mobile-logo-text {
        color: white;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .mobile-top-actions {
        display: flex;
        gap: 8px;
    }

    .mobile-top-btn {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 10px;
        color: white;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.2s;
    }

    .mobile-top-btn:active {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0.95);
    }

    /* Add body padding for fixed header */
    body {
        padding-top: 60px !important;
        padding-bottom: 80px !important;
    }

    /* ==========================================
       MOBILE HERO SECTION
       ========================================== */
    .hero {
        padding: 2rem 1rem;
        min-height: 220px;
        display: flex;
        align-items: center;
        border-radius: 0 0 24px 24px;
        margin: 0;
    }

    .hero .container {
        width: 100%;
    }

    .hero h2 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        opacity: 0.95;
    }

    .hero .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        border-radius: 25px;
    }

    .hero-dots {
        bottom: 12px;
        right: 12px;
    }

    /* ==========================================
       MOBILE QUICK ACTIONS GRID
       ========================================== */
    .mobile-quick-actions {
        display: block !important;
        padding: 20px 16px;
        background: #f8fafc;
    }

    .quick-actions-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .quick-action-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 16px 8px;
        background: white;
        border-radius: 16px;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: all 0.2s;
    }

    .quick-action-item:active {
        transform: scale(0.95);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .quick-action-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
    }

    .quick-action-icon.explore {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: white;
    }

    .quick-action-icon.hotels {
        background: linear-gradient(135deg, #8b5cf6, #6d28d9);
        color: white;
    }

    .quick-action-icon.food {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: white;
    }

    .quick-action-icon.tours {
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
    }

    .quick-action-icon.photos {
        background: linear-gradient(135deg, #ec4899, #db2777);
        color: white;
    }

    .quick-action-icon.stories {
        background: linear-gradient(135deg, #06b6d4, #0891b2);
        color: white;
    }

    .quick-action-icon.news {
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
    }

    .quick-action-icon.more {
        background: linear-gradient(135deg, #64748b, #475569);
        color: white;
    }

    .quick-action-label {
        font-size: 0.75rem;
        color: #374151;
        font-weight: 500;
        text-align: center;
    }

    /* ==========================================
       MOBILE SECTION STYLES
       ========================================== */
    section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0;
    }

    .section-title:after {
        width: 50px;
        height: 3px;
        margin-top: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-top: 0;
        margin-bottom: 1.5rem;
    }

    .container {
        width: 100%;
        padding: 0 16px;
    }

    /* ==========================================
       WHERE TO VISIT - Mobile Tabs
       ========================================== */
    .where-to-visit {
        background: white;
    }

    .visit-tabs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 12px;
        margin-bottom: 16px;
        scrollbar-width: none;
    }

    .visit-tabs::-webkit-scrollbar {
        display: none;
    }

    .visit-tab {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 20px;
        white-space: nowrap;
    }

    .visit-tab i {
        margin-right: 6px;
    }

    .visit-grid {
        display: flex !important;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
        scrollbar-width: none;
    }

    .visit-grid::-webkit-scrollbar {
        display: none;
    }

    .visit-card {
        flex-shrink: 0;
        width: 260px;
        border-radius: 16px;
    }

    .visit-card-image {
        height: 150px;
    }

    .visit-card-content {
        padding: 12px;
    }

    .visit-card-content h3 {
        font-size: 1rem;
    }

    .visit-card-content p {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    /* ==========================================
       LATEST CONTENT SECTION - Mobile
       ========================================== */
    .latest-content-section {
        padding: 2rem 0;
        background: #f8fafc;
    }

    .latest-content-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .latest-story-column,
    .latest-news-column {
        width: 100%;
    }

    .column-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .column-header h3 {
        font-size: 1.1rem;
        color: #1f2937;
    }

    .view-all-link {
        font-size: 0.85rem;
        color: #3b82f6;
    }

    .latest-story-card {
        border-radius: 16px;
    }

    .latest-story-card .story-image {
        height: 180px;
    }

    .latest-news-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .news-item {
        padding: 12px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    /* ==========================================
       HOTELS & RESTAURANTS - Mobile
       ========================================== */
    .featured-hotels,
    .featured-restaurants {
        padding: 2rem 0;
    }

    .featured-hotels-grid,
    .featured-restaurants-grid {
        display: flex !important;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
        scrollbar-width: none;
    }

    .featured-hotels-grid::-webkit-scrollbar,
    .featured-restaurants-grid::-webkit-scrollbar {
        display: none;
    }

    .hotel-card,
    .restaurant-card {
        flex-shrink: 0;
        width: 260px;
        border-radius: 16px;
    }

    .hotel-card-image,
    .restaurant-card-image {
        height: 150px;
    }

    .hotel-card-content,
    .restaurant-card-content {
        padding: 12px;
    }

    /* ==========================================
       BOOKING SECTION - Mobile
       ========================================== */
    .booking-system {
        padding: 2rem 0;
        background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
    }

    .booking-container {
        padding: 0;
    }

    .booking-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: white;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    .booking-form .form-group {
        margin-bottom: 0;
    }

    .booking-form label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .booking-form input,
    .booking-form select {
        padding: 14px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .booking-form button {
        padding: 16px;
        font-size: 1rem;
        border-radius: 12px;
    }

    /* ==========================================
       GALLERY - Mobile Grid
       ========================================== */
    .gallery {
        padding: 2rem 0;
    }

    .gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-item {
        border-radius: 12px;
        aspect-ratio: 1;
    }

    .gallery-item img {
        border-radius: 12px;
    }

    /* ==========================================
       FAQ SECTION - Mobile
       ========================================== */
    .faq-section {
        padding: 2rem 0;
    }

    .faq-two-column {
        flex-direction: column;
        gap: 24px;
    }

    .faq-display-column,
    .tips-form-column {
        width: 100%;
    }

    .faq-item {
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .faq-question {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 16px 14px;
        font-size: 0.9rem;
    }

    /* ==========================================
       ADVERTISEMENT - Mobile
       ========================================== */
    .advertisement {
        padding: 2rem 0;
        margin: 0;
    }

    .ad-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .ad-content p {
        font-size: 0.9rem;
    }

    /* ==========================================
       FEEDBACK SECTION - Mobile
       ========================================== */
    .feedback-section-home {
        padding: 2rem 0;
    }

    .feedback-two-column {
        flex-direction: column;
        gap: 24px;
    }

    .feedback-display-column,
    .feedback-form-column {
        width: 100%;
    }

    .home-feedback-grid {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
        scrollbar-width: none;
    }

    .home-feedback-grid::-webkit-scrollbar {
        display: none;
    }

    .feedback-card-home {
        flex-shrink: 0;
        width: 280px;
        border-radius: 16px;
        padding: 16px;
    }

    .feedback-form-container {
        border-radius: 16px;
        padding: 20px;
    }

    /* ==========================================
       MOBILE BOTTOM NAVIGATION
       ========================================== */
    .mobile-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 70px !important;
        background: white !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 8px 0 12px !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 1000 !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-decoration: none;
        color: #6b7280;
        font-size: 0.7rem;
        font-weight: 500;
        padding: 4px 12px;
        border-radius: 12px;
        transition: all 0.2s;
    }

    .mobile-nav-item.active {
        color: #0a2463;
    }

    .mobile-nav-item.active .mobile-nav-icon {
        background: linear-gradient(135deg, #0a2463, #1e3a8a);
        color: white;
    }

    .mobile-nav-icon {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 1.2rem;
        transition: all 0.2s;
    }

    .mobile-nav-item:active .mobile-nav-icon {
        transform: scale(0.9);
    }

    /* ==========================================
       MOBILE FOOTER (simplified)
       ========================================== */
    .mobile-footer {
        display: block !important;
        background: #f8fafc;
        padding: 24px 16px;
        padding-bottom: 90px;
        text-align: center;
    }

    .mobile-footer-logo {
        font-size: 1.2rem;
        font-weight: 700;
        color: #0a2463;
        margin-bottom: 8px;
    }

    .mobile-footer-text {
        font-size: 0.85rem;
        color: #6b7280;
        margin-bottom: 16px;
    }

    .mobile-footer-social {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .mobile-footer-social a {
        width: 40px;
        height: 40px;
        background: white;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6b7280;
        font-size: 1.1rem;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    .mobile-footer-copyright {
        font-size: 0.75rem;
        color: #9ca3af;
    }

    /* ==========================================
       MOBILE SEARCH OVERLAY
       ========================================== */
    .mobile-search-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 1100 !important;
        display: none !important;
    }

    .mobile-search-overlay.active {
        display: block !important;
    }

    .mobile-search-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .mobile-search-input-wrapper {
        display: flex;
        align-items: center;
        gap: 12px;
        background: #f3f4f6;
        border-radius: 12px;
        padding: 12px 16px;
    }

    .mobile-search-input-wrapper i {
        color: #6b7280;
    }

    .mobile-search-input-wrapper input {
        flex: 1;
        border: none;
        background: none;
        font-size: 1rem;
        outline: none;
        color: #1f2937;
    }

    .mobile-search-close {
        background: none;
        border: none;
        font-size: 1.2rem;
        color: #6b7280;
        cursor: pointer;
        padding: 4px;
    }

    /* ==========================================
       MOBILE MENU OVERLAY
       ========================================== */
    .mobile-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 1100 !important;
        display: none !important;
    }

    .mobile-menu-overlay.active {
        display: block !important;
    }

    .mobile-menu-panel {
        position: absolute;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 320px;
        height: 100%;
        background: white;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid #e5e7eb;
    }

    .mobile-menu-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1f2937;
    }

    .mobile-menu-close {
        width: 36px;
        height: 36px;
        background: #f3f4f6;
        border: none;
        border-radius: 10px;
        font-size: 1.1rem;
        color: #6b7280;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-items {
        padding: 16px;
    }

    .mobile-menu-section {
        margin-bottom: 20px;
    }

    .mobile-menu-section-title {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #9ca3af;
        letter-spacing: 0.5px;
        margin-bottom: 10px;
        padding-left: 12px;
    }

    .mobile-menu-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 12px;
        color: #374151;
        text-decoration: none;
        border-radius: 12px;
        transition: background 0.2s;
    }

    .mobile-menu-link:active {
        background: #f3f4f6;
    }

    .mobile-menu-link i {
        width: 20px;
        text-align: center;
        color: #6b7280;
    }

    .mobile-menu-link span {
        font-size: 0.95rem;
        font-weight: 500;
    }

    /* User section in menu */
    .mobile-menu-user {
        padding: 16px;
        border-top: 1px solid #e5e7eb;
    }

    .mobile-menu-signin {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, #0a2463, #1e3a8a);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
    }

    /* ==========================================
       CHAT WIDGET - Mobile Adjustments
       ========================================== */
    .chat-widget {
        bottom: 80px;
        right: 16px;
    }

    .chat-window {
        width: calc(100vw - 32px);
        height: 60vh;
        right: 0;
        bottom: 60px;
    }

    /* ==========================================
       SIGN IN MODAL - Mobile
       ========================================== */
    .modal-content {
        width: 92%;
        margin: 10% auto;
        padding: 24px;
        border-radius: 20px;
    }
}

/* ==========================================
   EXTRA SMALL DEVICES (max-width: 380px)
   ========================================== */
@media (max-width: 380px) {
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .quick-action-item {
        padding: 12px 4px;
    }

    .quick-action-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .quick-action-label {
        font-size: 0.65rem;
    }

    .mobile-card {
        width: 240px;
    }

    .visit-card,
    .hotel-card,
    .restaurant-card {
        width: 220px;
    }
}
