/* ========================================
   RESPONSIVE TABLET STYLES
   Breakpoint: 768px - 1023px (Tablet devices)
   ======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    /* ====================================
       DISPLAY CONTROL - HIDE DESKTOP
       ==================================== */
    .header-desktop,
    .footer-desktop {
        display: none !important;
    }
    
    .header-responsive {
        display: flex !important;
    }
    
    .footer-responsive {
        display: block !important;
    }
    
    /* Add padding to body for fixed header */
    body {
        padding-top: 68px;
    }
    
    /* ====================================
       HEADER RESPONSIVE STYLES
       ==================================== */
    .header-responsive {
        background: #02081C;
        padding: 16px 40px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 3000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .header-responsive-container {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        max-width: 100%;
        width: 100%;
    }
    
    .logo-responsive {
        display: flex;
        align-items: center;
        height: 30px;
    }
    
    .logo-responsive img {
        height: 30px;
        width: auto;
        object-fit: contain;
    }
    
    .header-responsive-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
    }
    
    /* Search Button (Solo en Index) */
    .search-btn-index {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 48px;
        padding: 12px 12px 18px 12px;
        gap: 11px;
        background: transparent;
        border: none;
        cursor: pointer;
        text-decoration: none;
        border-radius: 5.333px;
        transition: background 0.2s ease;
        position: relative;
    }
    
    .search-btn-index:hover {
        background: rgba(255, 255, 255, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }
    
    .search-btn-index img {
        width: 20px;
        height: 20px;
    }
    
    .search-btn-index span {
        color: white;
        font-size: 10px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        line-height: 1;
        white-space: nowrap;
        position: absolute;
        top: 34px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Menu Button */
    .menu-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 48px;
        padding: 12px 12px 18px 12px;
        gap: 11px;
        background: transparent;
        border: none;
        cursor: pointer;
        border-radius: 5.333px;
        transition: background 0.2s ease;
        position: relative;
    }
    
    .menu-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .menu-btn:active {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.6);
    }
    
    .menu-btn .menu-icon {
        width: 23.86px;
        height: 11px;
    }
    
    .menu-btn .close-icon {
        width: 18.08px;
        height: 18.08px;
    }
    
    .menu-btn span {
        color: white;
        font-size: 10px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        line-height: 1;
        white-space: nowrap;
        position: absolute;
        top: 34px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Menu Overlay */
    .menu-overlay {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100% - 72px);
        background: rgba(0, 0, 0, 0.8);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .menu-content {
        width: 100%;
        height: 100%;
        background: #030D2B;
        overflow-y: auto;
        padding: 24px;
        display: flex;
        flex-direction: column;
        padding-top: 24px;
    }
    
    /* Iconos del botón menu */
    .menu-btn .menu-icon,
    .menu-btn .close-icon,
    .menu-btn .menu-text,
    .menu-btn .close-text {
        transition: opacity 0.2s ease;
    }
    
    .menu-user-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 24px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 20px;
    }
    
    .menu-user-name {
        color: white;
        font-size: 20px;
        font-weight: 600;
        font-family: 'Montserrat', sans-serif;
    }
    
    /* Menu Items */
    .menu-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 19px;
        color: white;
        font-size: 16.66px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        text-decoration: none;
        border-radius: 4.76px;
        transition: background 0.2s ease;
        margin: 0;
    }
    
    .menu-item:hover {
        background: rgba(255, 255, 255, 0.08);
        color: white;
        text-decoration: none;
    }
    
    .menu-item-primary {
        background: transparent;
        font-weight: 700;
        font-size: 19.04px;
        margin-bottom: 8px;
    }
    
    .menu-item-with-icon {
        position: relative;
        padding-left: 32px;
    }
    
    .menu-item-with-icon::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 22px;
        height: 6px;
        background: white;
        border-top-right-radius: 100px;
        border-bottom-right-radius: 100px;
    }
    
    .menu-item-primary:hover,
    .menu-item-primary:active {
        background: rgba(255, 255, 255, 0.08);
    }
    
    /* Botón Iniciar sesión - Blanco con texto oscuro */
    .menu-item-login {
        background: white;
        color: #06174D;
        font-weight: 600;
        font-size: 16px;
        justify-content: center;
        border-radius: 4px;
        padding: 16px;
        margin-bottom: 8px;
    }
    
    .menu-item-login:hover,
    .menu-item-login:active {
        background: rgba(255, 255, 255, 0.9);
    }
    
    /* Botón Registrarse - Fondo oscuro con borde blanco */
    .menu-item-register {
        background: #06174D;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.75);
        font-weight: 600;
        font-size: 16px;
        justify-content: center;
        border-radius: 4px;
        padding: 16px;
    }
    
    .menu-item-register:hover,
    .menu-item-register:active {
        background: rgba(6, 23, 77, 0.9);
    }
    
    .menu-item-secondary {
        font-size: 16.66px;
        font-weight: 500;
        padding-left: 9.52px;
    }
    
    .menu-item svg {
        flex-shrink: 0;
    }
    
    /* Menu Sections */
    .menu-section-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 19px;
        background: transparent;
        border: none;
        border-radius: 4.76px;
        color: white;
        font-size: 16.66px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s ease;
        width: 100%;
        text-align: left;
        margin-bottom: 2px;
    }
    
    .menu-section-btn:hover {
        background: rgba(255, 255, 255, 0.12);
    }
    
    .menu-section-btn.active {
        background: rgba(255, 255, 255, 0.12);
    }
    
    .menu-section-btn .arrow-icon {
        transition: transform 0.3s ease;
    }
    
    .menu-section-btn.active .arrow-icon {
        transform: rotate(180deg);
    }
    
    .menu-section {
        display: none;
        flex-direction: column;
        gap: 2px;
        padding: 0;
        margin: 0;
        margin-bottom: 12px;
        overflow: visible;
    }
    
    .menu-section.active {
        display: flex !important;
    }
    
    .product-logo-small {
        max-height: 18px;
        width: auto;
        margin-right: 6px;
    }
    
    .menu-item-product {
        align-items: center;
    }
    
    .menu-item-reserve .highlight {
        color: #FFD700;
        font-weight: 600;
    }
    
    .menu-subsection-title {
        color: rgba(255, 255, 255, 0.6);
        font-size: 13px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 14px 12px 10px 12px;
        margin-top: 10px;
    }
    
    .menu-subsection-title:first-child {
        margin-top: 0;
    }
    
    .product-logo-small {
        max-height: 18px;
        width: auto;
        margin-right: 6px;
    }
    
    .menu-item-product {
        align-items: center;
    }
    
    .menu-item-reserve .highlight {
        color: #FF931E;
        font-weight: 600;
    }
    
    .menu-user-section {
        padding: 19px;
        padding-left: 0px;
    }
    
    .menu-auth-section {
        padding: 19px;
    }
    
    .menu-logout-section {
        padding: 19px;
        margin-top: auto;
    }
    
    .menu-logout-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 19px;
        background: white;
        border-radius: 4px;
        color: #06174D;
        font-size: 19.04px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    
    .menu-logout-btn:hover {
        background: rgba(255, 255, 255, 0.9);
        color: #06174D;
    }
    
    .menu-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 10px 0 14px 0;
    }
    
    /* ====================================
       FOOTER RESPONSIVE STYLES
       ==================================== */
    .footer-responsive {
        background: #030D2B;
        border-top: 0.5px solid rgba(255, 255, 255, 0.25);
        padding: 40px 40px 16px;
        width: 100%;
        display: block;
    }
    
    .footer-responsive-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;
        max-width: 100%;
        width: 100%;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
        width: 200px;
        height: auto;
    }
    
    .footer-logo img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .footer-social {
        display: flex;
        align-items: center;
        gap: 24px;
    }
    
    .social-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease;
    }
    
    .social-icon:hover {
        transform: scale(1.1);
    }
    
    .footer-divider {
        width: 280px;
        height: 1px;
        background: rgba(255, 255, 255, 0.25);
    }
    
    .footer-title {
        color: rgba(255, 255, 255, 0.5);
        font-size: 28px;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-weight: 700;
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    
    .footer-link {
        color: white;
        font-size: 16px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        text-decoration: none;
        text-align: center;
        padding: 14px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.2s ease;
    }
    
    .footer-link:hover {
        opacity: 0.8;
        color: white;
        text-decoration: none;
    }
    
    .footer-copyright {
        display: flex;
        align-items: center;
        gap: 10px;
        color: white;
        font-size: 12px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 300;
        text-align: center;
        margin-top: auto;
        padding-bottom: 0;
    }
    
    .copyleft-symbol {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
    }
    
    /* ====================================
       MAIN CONTENT ADJUSTMENTS
       ==================================== */
    .main-container {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* Ensure content doesn't overflow */
    body {
        overflow-x: hidden;
    }
    
    * {
        box-sizing: border-box;
    }
    
    /* Adjust grid layouts to 2 columns */
    .car-grid,
    .grid-container,
    .results-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding: 24px !important;
    }
    
    /* Card adjustments */
    .car-card,
    .card-item {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Container padding adjustments */
    .container,
    .content-wrapper {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
    
    /* Form adjustments */
    .form-group,
    .input-group {
        width: 100% !important;
    }
    
    /* Button adjustments */
    .btn,
    .button {
        font-size: 15px;
        padding: 14px 20px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 32px !important;
    }
    
    h2 {
        font-size: 26px !important;
    }
    
    h3 {
        font-size: 22px !important;
    }
    
    h4 {
        font-size: 18px !important;
    }
    
    /* Image adjustments */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* ====================================
       BODY PADDING FOR FIXED HEADER
       ==================================== */
    body {
        padding-top: 68px;
    }
    
    /* ====================================
       SEARCH MODAL RESPONSIVE
       ==================================== */
    .search-modal-responsive {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000000;
        z-index: 10000;
        overflow-y: auto;
    }
    
    .search-modal-responsive.active {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
    }
    
    .search-modal-content {
        width: 100%;
        max-width: 500px;
        position: relative;
    }
    
    .search-modal-close {
        position: absolute;
        top: 0;
        right: 0;
        background: transparent;
        border: none;
        color: white;
        font-size: 48px;
        cursor: pointer;
        padding: 0;
        width: 54px;
        height: 54px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2px;
        line-height: 0.8;
    }
    
    .search-modal-close-text {
        color: white;
        font-size: 11px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        line-height: 1;
    }
    
    .search-modal-body {
        display: flex;
        flex-direction: column;
        gap: 36px;
        margin-top: 70px;
    }
    
    .search-modal-title {
        color: white;
        font-size: 32px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        text-align: center;
        margin: 0;
    }
    
    .search-modal-form {
        display: flex;
        flex-direction: column;
        gap: 36px;
    }
    
    .search-modal-field {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
    
    .search-modal-label {
        color: white;
        font-size: 18px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        margin: 0;
    }
    
    .search-modal-input-wrapper {
        background: white;
        border-radius: 4px;
        padding: 18px;
    }
    
    .search-modal-input {
        width: 100%;
        border: none;
        outline: none;
        color: rgba(0, 0, 0, 0.5);
        font-size: 18px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        background: transparent;
    }
    
    .search-modal-input::placeholder {
        color: rgba(0, 0, 0, 0.5);
    }
    
    .search-modal-submit {
        width: 140px;
        height: 48px;
        padding: 0;
        background: white;
        border: none;
        border-radius: 4px;
        color: #06174D;
        font-size: 18px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        cursor: pointer;
        align-self: center;
        transition: background 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .search-modal-submit:hover {
        background: #f0f0f0;
    }
    
}

