/* public/css/responsive.css */
/* All responsive styles for landing page - Media Queries only */

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-grid {
        gap: 32px;
    }
    
    .howto-grid {
        gap: 25px;
    }
    
    .howto-card {
        padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    .hero-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .logo-text .psa-title {
        font-weight: 800;
        font-size: 16px;
        color: var(--psa-primary);
        display: block;
    }
    
    .main-nav {
        gap: 9px;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 14px;
    }

    .button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 28px;
        border-radius: 40px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s;
        cursor: pointer;
        border: none;
        font-size: 1.2rem;
        width: 100%;
        justify-content: center;
    }

    .button-view {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 28px;
        border-radius: 40px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s;
        cursor: pointer;
        border: none;
        font-size: 0.95rem;
        border-color: black;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .leaflet-map {
        height: 450px;
    }
    
    .stats-row {
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 12px;
    }
    
    .custom-toggle-btn {
        bottom: 350px;
        right: 15px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    /* Requirements section responsive */
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .req-header {
        padding: 16px 20px;
    }
    
    .req-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .req-header h3 {
        font-size: 1.1rem;
    }
    
    .req-tab {
        padding: 10px 12px;
        font-size: 0.75rem;
    }
    
    .req-list-container {
        max-height: 280px;
    }
    
    .req-docs li {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
    
    .warning-note {
        margin: 0 16px 16px 16px;
        padding: 12px;
    }

    /* How to section responsive */
    .howto-grid {
        gap: 20px;
    }
    
    .howto-card {
        padding: 20px;
    }
    
    .howto-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    html {
        scroll-padding-top: 120px;
    }

    /* Appointment modal responsive */
    .appointment-modal-container {
        width: 98%;
        height: 95vh;
        border-radius: 16px;
    }
    
    .appointment-modal-header {
        padding: 12px 16px;
    }

    /* Destination panel responsive */
    .destination-info-panel {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        padding: 12px;
    }
    
    /* Compass responsive */
    .compass-container {
        bottom: 10px;
        right: 10px;
        transform: scale(0.9);
    }
    
    .distance-value {
        font-size: 1.2rem;
    }
    
    .time-value {
        font-size: 1rem;
    }

    /* Copyright responsive */
    .copyright-text {
        font-size: 12px;
        line-height: 1.4;
        padding: 0 10px;
    }
    
    .copyright-text i {
        font-size: 12px;
    }
    
    .copyright-devs {
        font-size: 11px;
        flex-direction: column;
        gap: 4px;
    }
    
    .copyright-devs i {
        font-size: 11px;
    }
    
    .copyright-version {
        font-size: 10px;
    }
    
    .copyright-version i {
        font-size: 10px;
    }
}

/* ============================================
   MOBILE STANDARD (max-width: 480px)
   ALL CONTENT FULLY VISIBLE - OPTIMIZED FOR SMALL SCREENS
   ============================================ */
@media (max-width: 480px) {
    /* Container - More padding for breathing room */
    .container {
        padding: 0 14px;
    }
    
    /* ===== HEADER & NAVIGATION ===== */
    .site-header .container {
        padding: 10px 14px;
        gap: 12px;
    }
    
    .logo-area {
        gap: 10px;
    }
    
    .logo-icon img {
        width: 50px !important;
        height: 35px !important;
    }
    
    .logo-text .psa-title {
        font-size: 16px;
    }
    
    .logo-text .psa-sub {
        font-size: 13px;
    }
    
    .main-nav {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .button, .button-view {
        padding: 8px 14px;
        font-size: 0.75rem;
        gap: 6px;
    }
    
    /* ===== HERO SECTION ===== */
    .hero-section {
        padding: 35px 0 25px;
    }
    
    .hero-grid {
        gap: 25px;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 4px 10px;
        margin-bottom: 12px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .hero-buttons {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .stats-row {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat {
        font-size: 0.75rem;
        text-align: center;
    }
    
    .stat strong {
        font-size: 1rem;
    }
    
    .hero-image .floating-card img {
        max-height: 200px;
        width: auto;
        margin: 0 auto;
        display: block;
        border-radius: 20px;
    }
    
    /* ===== HOW TO SECTION ===== */
    .howto-section {
        padding: 35px 0;
    }
    
    .section-header {
        margin-bottom: 25px;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 0.8rem;
        margin-top: 6px;
        padding: 0 10px;
    }
    
    .howto-grid {
        gap: 18px;
        margin-top: 20px;
    }
    
    .howto-grid.second-row {
        margin-top: 0;
    }
    
    .howto-card {
        padding: 18px 14px;
    }
    
    .howto-step {
        font-size: 9px;
        padding: 3px 10px;
        margin-bottom: 10px;
    }
    
    .howto-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .howto-card p {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .howto-card p strong {
        font-weight: 700;
    }
    
    .howto-card small {
        font-size: 0.7rem;
        line-height: 1.4;
    }
    
    .howto-cta {
        margin-top: 30px;
    }
    
    .howto-cta .button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    /* ===== MAP SECTION ===== */
    .map-section {
        padding: 35px 0;
    }
    
    .leaflet-map {
        height: 320px;
    }
    
    .custom-toggle-btn {
        bottom: 270px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    /* ===== REQUIREMENTS SECTION ===== */
    .requirements-section {
        padding: 35px 0;
    }
    
    .requirements-grid {
        gap: 20px;
        margin-top: 20px;
    }
    
    .req-card {
        border-radius: 20px;
    }
    
    .req-header {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .req-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .req-header h3 {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .req-tabs {
        padding: 0 12px;
    }
    
    .req-tab {
        padding: 8px 8px;
        font-size: 0.7rem;
    }
    
    .req-list-container {
        max-height: 280px;
    }
    
    .req-docs li {
        padding: 10px 6px;
        font-size: 0.75rem;
        gap: 10px;
        line-height: 1.4;
    }
    
    .req-docs li i {
        font-size: 12px;
        margin-top: 2px;
    }
    
    .warning-note {
        margin: 0 14px 14px 14px;
        padding: 10px 12px;
        font-size: 0.7rem;
        gap: 8px;
    }
    
    .warning-note i {
        font-size: 14px;
    }
    
    /* ===== INFO / GUIDELINES SECTION ===== */
    .info-section {
        padding: 35px 0;
    }
    
    .info-grid {
        gap: 25px;
    }
    
    .info-text h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .info-text ul {
        padding-left: 18px;
    }
    
    .info-text li {
        font-size: 0.8rem;
        margin: 10px 0;
        line-height: 1.5;
    }
    
    .info-contact {
        padding: 18px;
        border-radius: 20px;
    }
    
    .info-contact h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .info-contact p {
        font-size: 0.8rem;
        margin-bottom: 10px;
        line-height: 1.5;
        word-break: break-word;
    }
    
    .info-contact a {
        font-size: 0.8rem;
        word-break: break-all;
    }
    
    /* ===== FOOTER ===== */
    .site-footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .footer-logo span {
        font-size: 0.85rem;
        line-height: 1.4;
        display: block;
    }
    
    .footer-logo small {
        font-size: 0.7rem;
        margin-top: 5px;
    }
    
    .footer-links {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
    
    .copyright {
        padding-top: 15px;
    }
    
    .copyright-text {
        font-size: 10px;
        flex-direction: column;
        gap: 4px;
        line-height: 1.4;
        padding: 0 8px;
    }
    
    .copyright-text i {
        font-size: 10px;
    }
    
    .copyright-devs {
        font-size: 9px;
        flex-direction: column;
        gap: 3px;
        margin-top: 6px;
    }
    
    .copyright-devs i {
        font-size: 9px;
    }
    
    .copyright-version {
        font-size: 8px;
        margin-top: 6px;
        gap: 4px;
    }
    
    .copyright-version i {
        font-size: 8px;
    }
    
    /* ===== MODALS ===== */
    .appointment-modal-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .appointment-modal-header {
        padding: 12px 14px;
    }
    
    .appointment-modal-header h3 {
        font-size: 0.9rem;
        gap: 8px;
    }
    
    .appointment-modal-header h3 img {
        height: 28px !important;
    }
    
    .close-appointment-modal {
        font-size: 22px;
        width: 32px;
        height: 32px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 80vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 14px 18px;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .close-modal {
        font-size: 24px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-body h3 {
        font-size: 0.95rem;
        margin-top: 15px;
        margin-bottom: 8px;
    }
    
    .modal-body p {
        font-size: 0.75rem;
        margin-bottom: 12px;
        line-height: 1.5;
    }
    
    .modal-body ul {
        margin-left: 15px;
        margin-bottom: 12px;
    }
    
    .modal-body li {
        font-size: 0.75rem;
        margin-bottom: 6px;
        line-height: 1.4;
    }
    
    /* ===== DESTINATION PANEL ===== */
    .destination-info-panel {
        top: 8px;
        right: 8px;
        left: 8px;
        padding: 10px;
        border-radius: 12px;
    }
    
    .destination-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
        gap: 8px;
    }
    
    .destination-header i {
        font-size: 14px;
    }
    
    .destination-header h4 {
        font-size: 0.8rem;
    }
    
    .distance-info {
        padding: 6px;
        margin-bottom: 8px;
    }
    
    .distance-value {
        font-size: 1rem;
    }
    
    .distance-unit {
        font-size: 0.65rem;
    }
    
    .time-value {
        font-size: 0.85rem;
    }
    
    .status-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
        margin-bottom: 8px;
    }
    
    .direction-to-destination {
        font-size: 0.7rem;
        padding: 6px;
    }
    
    /* ===== COMPASS ===== */
    .compass-container {
        bottom: 8px;
        right: 8px;
        transform: scale(0.75);
        padding: 6px;
    }
    
    .compass {
        width: 60px;
        height: 60px;
    }
    
    .compass-needle {
        height: 26px;
        top: 7px;
        width: 3px;
    }
    
    .compass-needle::before {
        bottom: -6px;
        left: -5px;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 10px solid #ef4444;
    }
    
    .compass-center {
        width: 10px;
        height: 10px;
    }
    
    .compass-direction-text {
        font-size: 9px;
        bottom: -20px;
        padding: 1px 6px;
    }
    
    .compass-north, .compass-south, .compass-east, .compass-west {
        font-size: 9px;
    }
    
    .sensor-status {
        font-size: 8px;
        margin-top: 6px;
    }
    
    /* ===== PSA LOADER ===== */
    .psa-loader-logo {
        width: 65px;
        height: 65px;
    }
    
    .psa-loader-container {
        padding: 20px 25px;
    }
    
    .psa-loader-text {
        font-size: 0.8rem;
        margin-top: 18px;
    }
    
    .psa-loader-subtext {
        font-size: 0.65rem;
        margin-top: 6px;
    }
    
    /* ===== SCROLL BEHAVIOR ===== */
    html {
        scroll-padding-top: 110px;
    }
}



/* ============================================
   EXTRA SMALL MOBILE (max-width: 380px)
   ============================================ */
@media (max-width: 380px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.3rem;
    }
    
    .hero-content p {
        font-size: 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .howto-card {
        padding: 15px 12px;
    }
    
    .howto-card h3 {
        font-size: 1rem;
    }
    
    .howto-card p {
        font-size: 0.75rem;
    }
    
    .leaflet-map {
        height: 280px;
    }
    
    .custom-toggle-btn {
        bottom: 235px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .req-header h3 {
        font-size: 0.85rem;
    }
    
    .req-tab {
        font-size: 0.65rem;
        padding: 6px 6px;
    }
    
    .req-list-container {
        max-height: 260px;
    }
    
    .req-docs li {
        font-size: 0.7rem;
    }
    
    .info-text h2 {
        font-size: 1.1rem;
    }
    
    .info-text li {
        font-size: 0.75rem;
    }
    
    .footer-links a {
        font-size: 0.7rem;
    }
}

/* ============================================
   LANDSCAPE MODE (max-height: 500px)
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 20px 0;
    }
    
    .hero-grid {
        gap: 20px;
    }
    
    .leaflet-map {
        height: 280px;
    }
    
    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .howto-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .appointment-modal-container {
        height: 98vh;
    }
    
    .modal-content {
        max-height: 90vh;
        margin: 2% auto;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .main-nav,
    .hero-section,
    .howto-section,
    .map-section,
    .requirements-section,
    .info-section,
    .site-footer,
    .howto-cta,
    .button,
    .custom-toggle-btn,
    .compass-container,
    .destination-info-panel,
    .modal,
    .appointment-modal-overlay {
        display: none !important;
    }
    
    body {
        background: white;
        padding: 20px;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 450px) {
   .container {
        padding: 0 14px;
    }
    
    /* ===== HEADER & NAVIGATION ===== */
    .site-header .container {
        padding: 10px 14px;
        gap: 12px;
    }
    
    .logo-area {
        gap: 10px;
    }
    
    .logo-icon img {
        width: 50px !important;
        height: 35px !important;
    }
    
    .logo-text .psa-title {
        font-size: 14px;
    }
    
    .logo-text .psa-sub {
        font-size: 13px;
    }
    
    .main-nav {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 13px;
    }
}

@media (max-width: 430px) {
   .container {
        padding: 0 14px;
    }
    
    /* ===== HEADER & NAVIGATION ===== */
    .site-header .container {
        padding: 10px 14px;
        gap: 12px;
    }
    
    .logo-area {
        gap: 10px;
    }
    
    .logo-icon img {
        width: 50px !important;
        height: 35px !important;
    }
    
    .logo-text .psa-title {
        font-size: 14px;
    }
    
    .logo-text .psa-sub {
        font-size: 13px;
    }
    
    .main-nav {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 12px;
    }
}