/**
 * Wild Texas Travel Calculator - Responsive Design
 * Location: /travel-calc/css/responsive.css
 * Version: 1.0
 * Last Updated: November 24, 2025
 * Mobile-first responsive breakpoints
 */

/* TABLET (768px - 1024px) */
@media (max-width: 1024px) {
    .calculator-wrapper {
        grid-template-columns: 280px 1fr;
        padding: 30px 20px;
        gap: 20px;
        margin: 20px auto;
    }

    .form-section {
        padding: 25px;
    }

    #map-container {
        height: 400px;
    }

    #dir-container {
        max-height: 350px;
        padding: 20px;
    }

    .header-right {
        gap: 12px;
    }

    .admin-btn span,
    .logout-btn span {
        display: none;
    }

    .admin-btn,
    .logout-btn {
        width: 40px;
        height: 40px;
        padding: 8px;
        justify-content: center;
    }
}

/* TABLET SMALL (768px) */
@media (max-width: 768px) {
    .calculator-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
        margin: 15px auto;
        max-width: 100%;
    }

    .form-section {
        grid-column: 1;
        grid-row: 1;
        padding: 20px;
    }

    #map-container {
        grid-column: 1;
        grid-row: 2;
        height: 350px;
        margin: 15px 0;
    }

    #dir-container {
        grid-column: 1;
        grid-row: 3;
        max-height: 300px;
        padding: 15px;
        margin: 15px 0;
    }

    .form-title {
        font-size: 20px;
    }

    .form-subtitle {
        font-size: 13px;
    }

    #from-input,
    #to-input {
        padding: 12px;
        font-size: 16px;
        margin-bottom: 12px;
    }

    #go-button,
    #clear-button {
        padding: 12px 16px;
        font-size: 15px;
        margin-bottom: 8px;
        min-height: 44px;
    }

    .button-row {
        gap: 8px;
    }

    /* HEADER RESPONSIVE */
    .header-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
    }

    .header-right {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .user-welcome {
        text-align: center;
        width: 100%;
    }

    .header-buttons {
        width: 100%;
        justify-content: center;
    }

    .admin-btn,
    .logout-btn {
        flex: 1;
        max-width: 120px;
        justify-content: center;
    }

    .admin-btn span,
    .logout-btn span {
        display: inline;
    }

    /* FOOTER RESPONSIVE */
    .footer-custom {
        padding: 20px 15px;
    }

    .footer-links {
        font-size: 12px;
    }

    .footer-copy {
        font-size: 11px;
    }

    /* MAP CONTROLS */
    .map-fullscreen-btn {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }

    /* SHORTCUTS MODAL */
    .shortcuts-modal-content {
        padding: 20px;
    }

    .shortcut-item {
        grid-template-columns: 100px 1fr;
        gap: 12px;
        padding: 8px 0;
    }

    /* DIRECTION STEPS */
    #dir-container li {
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    #dir-container li > div:first-child {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    #dir-container li > div:last-child {
        font-size: 13px;
    }

    /* TRIP SUMMARY */
    .trip-summary-row {
        gap: 20px;
    }

    .trip-summary-item {
        font-size: 14px;
    }

    /* LANDMARK BUTTONS */
    .landmark-buttons {
        gap: 8px;
    }

    .landmark-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* MOBILE (480px - 767px) */
@media (max-width: 480px) {
    .calculator-wrapper {
        padding: 15px 12px;
        gap: 15px;
        margin: 10px auto;
    }

    .form-section {
        padding: 15px;
    }

    .form-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .form-subtitle {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .form-content {
        gap: 12px;
    }

    .form-row {
        gap: 4px;
    }

    .form-row label {
        font-size: 13px;
    }

    #from-input,
    #to-input {
        padding: 11px 12px;
        font-size: 16px;
        margin-bottom: 10px;
    }

    #go-button,
    #clear-button {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 40px;
        margin-bottom: 6px;
    }

    #go-button i,
    #clear-button i {
        display: none;
    }

    #map-container {
        height: 280px;
        margin: 10px 0;
    }

    #dir-container {
        max-height: 250px;
        padding: 12px;
        margin: 10px 0;
    }

    #dir-container h3 {
        padding-bottom: 8px;
        font-size: 13px;
        margin-bottom: 12px;
    }

    #dir-container li {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    #dir-container li > div:first-child {
        width: 24px;
        height: 24px;
        font-size: 11px;
        flex-shrink: 0;
    }

    /* HEADER RESPONSIVE */
    .header-custom {
        padding: 10px 12px;
    }

    .header-container {
        gap: 8px;
    }

    .header-logo {
        height: 32px;
    }

    .header-title {
        font-size: 16px;
    }

    .header-tagline {
        font-size: 11px;
    }

    .user-name {
        font-size: 13px;
    }

    .user-plan {
        font-size: 10px;
    }

    .admin-btn,
    .logout-btn {
        padding: 6px 10px;
        font-size: 12px;
        width: 36px;
        height: 36px;
    }

    /* FOOTER */
    .footer-custom {
        padding: 15px 12px;
    }

    .footer-links {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .footer-copy {
        font-size: 10px;
    }

    /* MAP FULLSCREEN */
    #map-container.map-fullscreen {
        top: 60px;
        height: calc(100% - 60px);
    }

    .map-fullscreen-btn {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
    }

    .map-fullscreen-btn i {
        font-size: 14px;
    }

    /* TRIP SUMMARY */
    .trip-summary {
        padding: 12px;
    }

    .trip-summary-row {
        gap: 12px;
        margin-bottom: 8px;
    }

    .trip-summary-item {
        font-size: 13px;
    }

    /* ALTERNATIVE ROUTES */
    .alternative-routes {
        padding: 12px;
    }

    .alternative-routes h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .route-option {
        padding: 10px;
        margin-bottom: 8px;
    }

    /* LANDMARKS */
    .quick-landmarks {
        padding: 12px;
    }

    .quick-landmarks h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .landmark-buttons {
        gap: 6px;
    }

    .landmark-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* SHORTCUTS MODAL */
    .shortcuts-modal-content {
        padding: 15px;
        width: 95%;
    }

    .shortcuts-modal-header h2 {
        font-size: 18px;
    }

    .shortcut-item {
        grid-template-columns: 80px 1fr;
        gap: 8px;
        padding: 6px 0;
    }

    kbd {
        padding: 3px 6px;
        font-size: 11px;
    }

    .shortcut-item span {
        font-size: 12px;
    }

    /* UNITS RADIO */
    .units-row {
        gap: 10px;
    }

    .unit-option label {
        font-size: 13px;
    }
}

/* VERY SMALL MOBILE (< 380px) */
@media (max-width: 380px) {
    .calculator-wrapper {
        padding: 12px 10px;
        gap: 12px;
    }

    .form-section {
        padding: 12px;
    }

    .form-title {
        font-size: 16px;
    }

    .form-content {
        gap: 10px;
    }

    #from-input,
    #to-input,
    #go-button,
    #clear-button {
        font-size: 14px;
        padding: 10px;
    }

    #map-container {
        height: 250px;
    }

    #dir-container {
        max-height: 200px;
    }

    .header-container {
        flex-direction: column;
    }

    .header-left {
        gap: 8px;
    }

    .header-logo {
        height: 28px;
    }

    .header-title {
        font-size: 14px;
    }

    .trip-summary-row {
        flex-direction: column;
        gap: 6px;
    }
}

/* PRINT MEDIA */
@media print {
    body {
        background: white;
    }

    .header-custom,
    .footer-custom,
    .admin-btn,
    .logout-btn,
    #go-button,
    #clear-button,
    .map-fullscreen-btn {
        display: none !important;
    }

    .calculator-wrapper {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .form-section {
        display: none;
    }

    #map-container {
        height: auto;
        page-break-inside: avoid;
    }

    #dir-container {
        max-height: none;
        overflow: visible;
        page-break-inside: avoid;
    }
}