/* ============================================
   Sports Booking Theme - Base Styles
   Usa variables CSS de /sbt/theme.css
   ============================================ */

/* === BARRA SUPERIOR === */
.sbt-top-bar {
    background-color: var(--sbt-top-bar-bg, #1a1a1a);
    padding: 6px 0;
    font-size: 13px;
    color: var(--sbt-text-light, #fff);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sbt-top-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: color 0.2s;
    font-size: 13px;
}

.sbt-top-link:hover {
    color: var(--sbt-accent, #E8A824) !important;
}

.sbt-top-link i {
    margin-right: 5px;
    font-size: 12px;
}

.sbt-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s;
    font-size: 13px;
}

.sbt-social-icon:hover {
    background: var(--sbt-accent, #E8A824);
    transform: translateY(-2px);
}

/* === NAVBAR PRINCIPAL === */
.sbt-navbar {
    background-color: var(--sbt-header-bg, #E8A824);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.sbt-logo {
    text-decoration: none !important;
}

.sbt-logo-img {
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

.sbt-logo-text {
    font-size: 26px;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sbt-menu-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 4px;
    position: relative;
    transition: color 0.3s;
}

.sbt-menu-link:hover,
.sbt-menu-link.active {
    color: #fff !important;
}

.sbt-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
}

.sbt-menu-link:hover::after {
    width: 100%;
}

/* === BOTONES === */
.sbt-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: #fff !important;
    color: var(--sbt-header-bg, #E8A824) !important;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.sbt-cta-btn:hover {
    background: var(--sbt-secondary, #2e7d32) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.sbt-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    font-weight: 500;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
}

.sbt-whatsapp-btn:hover {
    background: #25d366 !important;
    border-color: #25d366;
    transform: translateY(-1px);
}

/* === MENÚ MOBILE === */
.sbt-mobile-toggle {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.sbt-mobile-toggle:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.sbt-mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--sbt-header-bg, #E8A824);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
}

.sbt-mobile-menu.active {
    display: flex !important;
}

.sbt-mobile-link {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.sbt-mobile-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    padding-left: 28px;
}

/* === HERO SECTION ===
   Texto oscuro sobre el dorado de la marca: el blanco sobre #E8A824 no llega
   al contraste minimo legible. El degradado va entre los dos tonos dorados
   (#E8A824 -> #C48B1A), no de dorado a naranja. */
.sbt-hero-section {
    background: linear-gradient(135deg, var(--sbt-header-bg, #E8A824), var(--sbt-primary, #C48B1A));
    padding: 50px 0 40px;
    color: var(--dp-black, #1a1a1a);
}

.sbt-hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sbt-hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

/* === SLIDER DE LA HOME (Depor Plaza) === */
/* Sin alto fijo: la imagen manda, asi una de 1920x600 y otra de 1920x800 se
   ven completas en vez de recortadas. El alto minimo evita el salto de
   maquetacion mientras carga la primera. */
.sbt-slider .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

.sbt-slider .carousel-inner {
    min-height: 180px;
    background: var(--sbt-body-bg, #f5f5f5);
}

/* Las flechas e indicadores de Bootstrap son blancos: sobre una imagen clara
   desaparecen. La sombra los mantiene visibles sobre cualquier foto. */
.sbt-slider .carousel-control-prev-icon,
.sbt-slider .carousel-control-next-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6));
}

/* Los indicadores de Bootstrap son rectangulos blancos de 30x3 pegados entre
   si: sobre el dorado parecian dos barras amarillas sin sentido. Se pasan a
   puntos separados, oscuros, y el activo se alarga en capsula. */
.sbt-slider .carousel-indicators {
    gap: 10px;
    margin-bottom: 18px;
}

.sbt-slider .carousel-indicators [data-bs-target] {
    width: 11px;
    height: 11px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--dp-black, #1a1a1a);
    opacity: .35;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    transition: width .2s ease, opacity .2s ease, border-radius .2s ease;
}

.sbt-slider .carousel-indicators [data-bs-target]:hover {
    opacity: .6;
}

.sbt-slider .carousel-indicators .active {
    width: 30px;
    border-radius: 6px;
    opacity: 1;
}

/* === TITULOS DE SECCION ===
   Usan las variables de DeporPlaza (--dp-*, definidas en
   sports_field_booking/static/src/css/variables.css) para que la home herede
   la identidad real de la marca: dorado sobre negro y Montserrat. El valor de
   respaldo mantiene la pagina legible si ese archivo no llega a cargar. */
.sbt-section-title {
    font-family: var(--dp-font-primary, 'Montserrat', Arial, sans-serif);
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dp-black, #1a1a1a);
    margin-bottom: 10px;
}

/* Subrayado dorado corto bajo el titulo: es el recurso que usa el resto de
   la web de DeporPlaza para separar secciones. */
.sbt-section-title::after {
    content: "";
    display: block;
    width: 68px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: var(--dp-gradient-primary,
                linear-gradient(90deg, #e8a824 0%, #d4941c 100%));
}

.sbt-section-subtitle {
    font-family: var(--dp-font-secondary, 'Open Sans', Helvetica, sans-serif);
    font-size: 17px;
    color: var(--dp-gray, #6c6c6c);
    margin: 14px 0 0;
}

/* Boton "Ver todas las sedes": suelto bajo la reja, asi que no ocupa todo el
   ancho (a diferencia del de reservar, que va dentro de la tarjeta). */
.sbt-btn-ver-todas {
    display: inline-block;
    width: auto;
    padding: 14px 42px;
    border-radius: 999px;
    background: var(--dp-gradient-primary,
                linear-gradient(90deg, #e8a824 0%, #d4941c 100%));
    color: var(--dp-black, #1a1a1a);
    font-family: var(--dp-font-primary, 'Montserrat', Arial, sans-serif);
    font-weight: 800;
    letter-spacing: .6px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.sbt-btn-ver-todas:hover {
    color: var(--dp-black, #1a1a1a);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 168, 36, .35);
}

@media (max-width: 575px) {
    .sbt-section-title {
        font-size: 23px;
    }
}

/* === HAZ NEGOCIO CON NOSOTROS ===
   La tarjeta REUTILIZA .sbt-venue-card (la de las sedes): misma caja, misma
   sombra, misma foto recortada. Aqui solo van las diferencias, para que las
   dos secciones de la portada se vean como una sola web y un cambio de
   diseno en la tarjeta de sede arrastre tambien a esta. */
.sbt-negocio-section {
    padding: 50px 0 70px;
    background: var(--dp-white, #fff);
}

/* La tarjeta entera es el enlace, asi que se le quita el subrayado y el color
   de enlace que Bootstrap pone a todo <a>. */
a.sbt-negocio-card,
a.sbt-negocio-card:hover,
a.sbt-negocio-card:focus {
    text-decoration: none;
    color: inherit;
}

/* El cuerpo centrado: una sede lleva datos alineados a la izquierda
   (direccion, telefono); aqui solo hay titulo y boton. */
.sbt-negocio-card .sbt-venue-body {
    text-align: center;
}

.sbt-negocio-card .sbt-venue-name {
    margin-bottom: 14px;
}

/* El boton es un <span>, no un <a>, porque el enlace es la tarjeta entera.
   Hereda el estilo de .sbt-venue-btn, que ya es el dorado de la marca. */
.sbt-negocio-card .sbt-venue-btn {
    display: inline-block;
    width: auto;
    padding: 9px 26px;
}

/* === VENUE CARDS === */
.sbt-venues-section {
    padding: 40px 0 60px;
}

.sbt-venue-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sbt-venue-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.sbt-venue-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
}

.sbt-venue-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.sbt-venue-card:hover .sbt-venue-img img {
    transform: scale(1.05);
}

/* Se ve en toda sede sin foto, que hoy son todas: por eso usa el negro y el
   dorado de DeporPlaza y no un gris neutro. */
.sbt-venue-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dp-gradient-dark,
                linear-gradient(180deg, #1a1a1a 0%, #2c2c2c 100%));
    color: var(--dp-orange, #e8a824);
    opacity: .85;
    font-size: 60px;
}

/* Texto OSCURO sobre el dorado, no blanco: el blanco sobre #E8A824 queda por
   debajo del contraste minimo legible y la cifra de canchas no se leia. */
.sbt-venue-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--sbt-header-bg, #E8A824);
    color: var(--dp-black, #1a1a1a);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sbt-venue-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sbt-venue-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--sbt-text-dark, #2c3e50);
    margin-bottom: 10px;
}

.sbt-venue-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.sbt-venue-detail {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sbt-venue-detail i {
    color: var(--sbt-header-bg, #E8A824);
    font-size: 14px;
    min-width: 16px;
}

/* Amenidades */
.sbt-venue-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.sbt-amenity-tag {
    font-size: 11px;
    padding: 4px 10px;
    background: #f0f4f8;
    border-radius: 15px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sbt-amenity-tag i {
    font-size: 10px;
    color: var(--sbt-header-bg, #E8A824);
}

.sbt-amenity-more {
    font-size: 11px;
    padding: 4px 10px;
    background: var(--sbt-header-bg, #E8A824);
    color: #fff;
    border-radius: 15px;
    font-weight: 600;
}

/* Botón reservar */
.sbt-venue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    /* Dorado con texto oscuro, como el resto de botones de DeporPlaza. */
    background: var(--sbt-header-bg, #E8A824) !important;
    color: var(--dp-black, #1a1a1a) !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.3s;
    margin-top: auto;
}

.sbt-venue-btn:hover {
    background: var(--sbt-secondary, #C48B1A) !important;
    color: var(--dp-black, #1a1a1a) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* === FOOTER === */
.sbt-footer {
    margin-top: auto;
}

.sbt-footer-main {
    background-color: var(--sbt-footer-bg, #111);
    color: #fff;
}

.sbt-footer-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sbt-footer-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.sbt-footer-slogan {
    font-size: 15px;
    color: var(--sbt-header-bg, #E8A824);
    font-weight: 500;
    margin-bottom: 8px;
}

.sbt-footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.sbt-footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.sbt-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--sbt-header-bg, #E8A824);
    border-radius: 2px;
}

.sbt-footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sbt-footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.sbt-footer-contact-list li i {
    color: var(--sbt-header-bg, #E8A824);
    font-size: 16px;
    margin-top: 2px;
    min-width: 18px;
}

.sbt-footer-contact-list li a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.sbt-footer-contact-list li a:hover {
    color: var(--sbt-header-bg, #E8A824) !important;
}

.sbt-footer-contact-list li span {
    color: rgba(255, 255, 255, 0.75);
}

.sbt-social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    transition: all 0.3s;
}

.sbt-social-circle:hover {
    background: var(--sbt-header-bg, #E8A824);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.sbt-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sbt-footer-links li {
    margin-bottom: 8px;
}

.sbt-footer-links li a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sbt-footer-links li a::before {
    content: '›';
    font-size: 18px;
    color: var(--sbt-header-bg, #E8A824);
}

.sbt-footer-links li a:hover {
    color: var(--sbt-header-bg, #E8A824) !important;
    padding-left: 4px;
}

/* === FOOTER BOTTOM === */
.sbt-footer-bottom {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.sbt-copyright {
    font-size: 13px;
}

.sbt-legal-link {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: color 0.2s;
}

.sbt-legal-link:hover {
    color: var(--sbt-header-bg, #E8A824) !important;
}

/* === WHATSAPP FLOTANTE === */
.sbt-whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s;
    text-decoration: none !important;
    animation: sbt-wa-pulse 2s infinite;
}

.sbt-whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes sbt-wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .sbt-logo-img {
        max-height: 40px;
    }

    .sbt-cta-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .sbt-hero-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .sbt-top-bar .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .sbt-navbar .container {
        flex-wrap: wrap;
    }

    .sbt-hero-section {
        padding: 35px 0 30px;
    }

    .sbt-hero-title {
        font-size: 24px;
    }

    .sbt-hero-subtitle {
        font-size: 15px;
    }

    .sbt-venue-img {
        height: 180px;
    }

    .sbt-footer .row {
        text-align: center;
    }

    .sbt-footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .sbt-footer-contact-list li {
        justify-content: center;
    }

    .sbt-footer-social {
        justify-content: center;
    }

    .sbt-footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .sbt-whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
}

/* === OVERRIDE ODOO DEFAULTS === */
.sbt-header + .o_main_content,
.sbt-header ~ main {
    min-height: calc(100vh - 200px);
}

.sbt-header .o_header_standard,
.sbt-header .o_header_color,
.sbt-header .o_header_sidebar {
    display: none !important;
}
