/*
Theme Name: Cab Transfers Sevilla
Theme URI: https://cabtransfersevilla.es
Author: Cab Transfers
Author URI: https://cabtransfersevilla.es
Description: Tema personalizado para Cab Transfers Sevilla - Servicios premium de traslados
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cabtransfers
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
*/

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-500: #6b7280;
    --color-gray-900: #111827;
    --color-white: #ffffff;
}

html {
    height: 100%;
}

body {
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

/* Asegurar que el main ocupe el espacio disponible */
main {
    width: 100%;
}

/* Utilidades de texto */
.text-balance {
    text-wrap: balance;
}

/* Hero Background */
.cab-hero {
    background: rgba(0, 0, 0, 0.55);
}

.cab-hero img.overlay {
    mix-blend-mode: overlay;
}

/* Grid Wrapper */
.wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto;
}

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.uppercase {
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

/* Responsive utilities */
.hidden {
    display: none;
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex;
    }
    
    .lg\:hidden {
        display: none;
    }
}

/* Estilos adicionales para el hero divider */
.divider {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Asegurar que las imágenes responsive funcionen */
img {
    max-width: 100%;
    height: auto;
}

/* Estilos para el contenido de páginas y entradas */
.entry-content p,
.page-content p,
article p {
    margin-bottom: 1.25rem; /* 20px */
    line-height: 1.75;
}

.entry-content p:last-child,
.page-content p:last-child,
article p:last-child {
    margin-bottom: 0;
}

/* Espaciado para otros elementos del contenido */
.entry-content h1,
.page-content h1,
article h1 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.entry-content h2,
.page-content h2,
article h2 {
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.entry-content h3,
.page-content h3,
article h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol,
article ul,
article ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.entry-content li,
.page-content li,
article li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote,
.page-content blockquote,
article blockquote {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--color-gray-300);
    font-style: italic;
    color: var(--color-gray-500);
}

.entry-content a,
.page-content a,
article a {
    color: #2563eb;
    text-decoration: underline;
}

.entry-content a:hover,
.page-content a:hover,
article a:hover {
    color: #1d4ed8;
}

/* Aspect ratio para imágenes */
.aspect-w-1 {
    position: relative;
    padding-bottom: 100%;
}

.aspect-w-1 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Flag icons tamaño */
.fi {
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
}

/* Vehicle images */
.vehicle-image {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Booking Form Styles (shadcn/ui inspired)
   ============================================ */

.booking-form-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.booking-form-wrapper {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.booking-form-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.booking-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.booking-form-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Labels */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-label .required {
    color: #ef4444;
    margin-left: 0.125rem;
}

/* Input Styles (shadcn/ui inspired) */
.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #111827;
    ring: 2px;
    ring-color: rgba(17, 24, 39, 0.1);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

/* Select específico */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Textarea */
.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Error Messages */
.form-error {
    display: block;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.375rem;
    min-height: 1rem;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
    border-color: #ef4444;
}

.form-group.has-error .form-input:focus,
.form-group.has-error .form-select:focus,
.form-group.has-error .form-textarea:focus {
    ring-color: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Submit Button (shadcn/ui style) */
.form-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
    background-color: #111827;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    font-family: inherit;
}

.form-button:hover:not(:disabled) {
    background-color: #1f2937;
}

.form-button:focus {
    outline: none;
    ring: 2px;
    ring-color: rgba(17, 24, 39, 0.2);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.2);
}

.form-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Spinner */
.button-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 1rem;
    height: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Form Messages */
.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Google Maps Autocomplete Indicators */
.form-group.in-seville .form-input {
    border-left: 3px solid #10b981;
}

.form-group.not-in-seville .form-input {
    border-left: 3px solid #f59e0b;
}

.seville-warning {
    display: none;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Autocomplete dropdown custom styles */
.pac-container {
    border-radius: 6px;
    margin-top: 4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    font-family: 'Mulish', sans-serif;
}

.pac-item {
    padding: 8px 12px;
    font-size: 0.875rem;
    cursor: pointer;
    border-top: 1px solid #f3f4f6;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background-color: #f9fafb;
}

.pac-item-selected,
.pac-item-selected:hover {
    background-color: #f3f4f6;
}

.pac-icon {
    margin-right: 8px;
}

.pac-item-query {
    font-weight: 600;
    color: #111827;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .booking-form-wrapper {
        padding: 1.5rem;
    }
    
    .booking-form-title {
        font-size: 1.25rem;
    }
}

