/*
Theme Name: Tucasa Particular Cuba
Theme URI: https://tucasaparticularcuba.com
Author: Hugo & ChatGPT
Description: Theme de alojamientos en Cuba con sistema de arrendadores, viviendas y habitaciones, basado en estilo Homestay. Incluye opciones de personalización en el personalizador de WordPress.
\g<1>1.3.2
Text Domain: tucasaparticularcuba
*/

:root {
    --tcpc-primary: #00838f;
    --tcpc-secondary: #ffb300;
    --tcpc-bg: #f5f5f5;
    --tcpc-dark: #222222;
    --tcpc-light: #ffffff;
    --tcpc-radius: 8px;
    --tcpc-max-width: 1200px;
    --tcpc-font-main: 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--tcpc-font-main);
    background-color: var(--tcpc-bg);
    color: var(--tcpc-dark);
}

/* Header */

.tcpc-header {
    background-color: var(--tcpc-light);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.tcpc-header-inner {
    max-width: var(--tcpc-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.tcpc-logo a {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--tcpc-primary);
    text-decoration: none;
}

.tcpc-main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.tcpc-main-nav a {
    text-decoration: none;
    color: var(--tcpc-dark);
    font-size: 0.95rem;
}

.tcpc-main-nav a:hover {
    color: var(--tcpc-primary);
}

/* Mobile menu */

.tcpc-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .tcpc-main-nav {
        position: fixed;
        top: 56px;
        right: 0;
        flex-direction: column;
        background: var(--tcpc-light);
        padding: 1rem;
        width: 70%;
        max-width: 280px;
        height: calc(100% - 56px);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .tcpc-main-nav.is-open {
        transform: translateX(0);
    }

    .tcpc-menu-toggle {
        display: block;
    }
}

/* Layout general */

.tcpc-container {
    max-width: var(--tcpc-max-width);
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Parallax portada */

.tcpc-hero-parallax {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tcpc-light);
    text-align: center;
}

.tcpc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.75)
    );
}

.tcpc-hero-content {
    position: relative;
    padding: 2rem 1rem;
    max-width: 640px;
}

.tcpc-hero-title {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
}

.tcpc-hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.tcpc-hero-search {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--tcpc-radius);
    backdrop-filter: blur(6px);
}

/* Formulario búsqueda */

.tcpc-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tcpc-search-form input,
.tcpc-search-form select {
    padding: 0.5rem 0.75rem;
    border-radius: var(--tcpc-radius);
    border: none;
    min-width: 140px;
}

.tcpc-btn-primary {
    background: var(--tcpc-secondary);
    color: #222;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--tcpc-radius);
    cursor: pointer;
    font-weight: 600;
}

.tcpc-btn-primary:hover {
    filter: brightness(1.05);
}

/* Sección listados */

.tcpc-section-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.tcpc-section-subtitle {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tcpc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 992px) {
    .tcpc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .tcpc-grid {
        grid-template-columns: 1fr;
    }
}

.tcpc-card {
    background: var(--tcpc-light);
    border-radius: var(--tcpc-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.tcpc-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tcpc-card-body {
    padding: 0.75rem 0.9rem;
}

.tcpc-card-title {
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.tcpc-card-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.5rem;
}

/* Formularios arrendador */

.tcpc-form {
    background: var(--tcpc-light);
    border-radius: var(--tcpc-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tcpc-form-group {
    margin-bottom: 1rem;
}

.tcpc-form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.tcpc-form-group input,
.tcpc-form-group textarea,
.tcpc-form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: var(--tcpc-radius);
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

.tcpc-form-group textarea {
    min-height: 120px;
}

/* Footer + widgets */

.tcpc-footer {
    background: #111;
    color: #ccc;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.tcpc-footer-inner {
    max-width: var(--tcpc-max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    font-size: 0.85rem;
}

.tcpc-footer a {
    color: #ddd;
    text-decoration: none;
}

.tcpc-footer a:hover {
    color: var(--tcpc-secondary);
}

.tcpc-footer-widgets {
    display:flex;
    flex-wrap:wrap;
    gap:1.5rem;
    width:100%;
}

.tcpc-footer-widget-area {
    min-width:220px;
    flex:1 1 0;
}

.tcpc-footer-bottom {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #777;
}

/* ==== MENÚ MEJORADO TUCASA v1.2.1 ==== */
.tcpc-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 0;
    z-index: 9999;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.tcpc-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tcpc-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.tcpc-main-nav ul li { position: relative; }
.tcpc-main-nav ul li a {
    color: #ffffff;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    transition: 0.18s ease;
}
.tcpc-main-nav ul li a:hover {
    background: rgba(255,255,255,0.18);
}
.tcpc-main-nav ul li ul {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: rgba(0,0,0,0.88);
    padding: 0.6rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}
.tcpc-main-nav ul li:hover > ul { display: block; }

/* MOBILE */
.tcpc-menu-toggle { display:none; }
@media (max-width:900px){
    .tcpc-menu-toggle {
        display:flex;
        width:40px;height:40px;
        border-radius:999px;
        border:1px solid rgba(255,255,255,0.3);
        background:rgba(0,0,0,0.35);
        color:#fff;
        align-items:center;
        justify-content:center;
    }
    .tcpc-main-nav { display:none; }
    .tcpc-main-nav.is-open {
        display:block;
        position:absolute;
        right:1rem;
        top:110%;
        background:rgba(0,0,0,0.94);
        padding:1rem;
        border-radius:14px;
    }
    .tcpc-main-nav.is-open ul {
        flex-direction:column;
        gap:0.5rem;
    }
}

/* ==== TUCASA v1.3.0 - Paleta Cuba + ajustes móvil/tablet ==== */
:root {
    --cuba-blue: #1B4FA3;
    --cuba-red: #CC1F2A;
    --cuba-white: rgba(255,255,255,0.85);
}

/* Header un poco más claro */
.tcpc-header {
    background: rgba(0,0,0,0.18) !important;
}

/* Menú más claro con blanco suave */
.tcpc-main-nav ul li a {
    color: var(--cuba-white) !important;
}

/* Hover más luminoso */
.tcpc-main-nav ul li a:hover {
    background: rgba(255,255,255,0.25) !important;
}

/* Botón destacado en menú: clase .menu-item-highlight */
.tcpc-main-nav .menu-item-highlight > a {
    background: var(--cuba-red) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Ajustes tablet: menú más compacto */
@media (max-width: 1024px) {
    .tcpc-main-nav ul {
        gap: 0.8rem !important;
    }
    .tcpc-main-nav ul li a {
        font-size: 0.9rem !important;
        padding: 0.35rem 0.5rem !important;
    }
}

/* Forzar botón hamburguesa en móvil y comportamiento tipo app */
@media (max-width: 900px) {
    .tcpc-menu-toggle {
        display: flex !important;
        z-index: 99999;
    }
    .tcpc-main-nav {
        display: none !important;
    }
    .tcpc-main-nav.is-open {
        display: block !important;
    }
}


/* ==== CONTROL DE OPACIDAD DEL HEADER v1.3.1 ==== */
:root {
    --header-opacity: 0.18; /* Ajustable */
}
.tcpc-header {
    background: rgba(0,0,0,var(--header-opacity)) !important;
}


/* ==== AJUSTES MENÚ MÓVIL v1.3.2 ==== */
@media (max-width: 900px) {
    .tcpc-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 99999;
    }
    .tcpc-main-nav {
        position: absolute;
        top: 100%;
        right: 1rem;
        background: rgba(0,0,0,0.94);
        padding: 1rem 1.1rem;
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(0,0,0,0.55);
        display: none;
    }
    .tcpc-main-nav.is-open {
        display: block !important;
    }
    .tcpc-main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .tcpc-main-nav ul li ul {
        position: static;
        background: none;
        box-shadow: none;
        padding: 0.3rem 0 0.2rem;
        display: none;
    }
    .tcpc-main-nav ul li ul li a {
        padding-left: 1.1rem;
        font-size: 0.9rem;
    }
}


/* ==== ICONO HAMBURGUESA MÓVIL v1.3.3 ==== */
.tcpc-menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.40);
    cursor: pointer;
    display: none;
}
.tcpc-menu-toggle .tcpc-menu-icon,
.tcpc-menu-toggle .tcpc-menu-icon::before,
.tcpc-menu-toggle .tcpc-menu-icon::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    position: relative;
    margin: 0 auto;
}
.tcpc-menu-toggle .tcpc-menu-icon::before {
    position: absolute;
    top: -5px;
    left: 0;
}
.tcpc-menu-toggle .tcpc-menu-icon::after {
    position: absolute;
    top: 5px;
    left: 0;
}

/* Reglas móviles definitivas */
@media (max-width: 900px) {
    .tcpc-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 99999;
    }
    .tcpc-main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 1rem;
        background: rgba(0,0,0,0.94);
        padding: 1rem 1.1rem;
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(0,0,0,0.55);
    }
    .tcpc-main-nav.is-open {
        display: block !important;
    }
    .tcpc-main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}


/* ==== Layout casa/habitación (v1.3.4) ==== */
.tcpc-card{background:#fff;border-radius:18px;padding:1.2rem 1.2rem 1.4rem;box-shadow:0 14px 40px rgba(0,0,0,0.07);margin:1.2rem 0;}
.tcpc-title{margin:0 0 1rem;font-size:2rem;}
.tcpc-casa-hero{display:grid;grid-template-columns: 1.2fr 0.8fr;gap:1.2rem;align-items:start;}
.tcpc-casa-photo img{width:100%;height:auto;border-radius:18px;display:block;}
.tcpc-casa-thumbs{display:flex;gap:0.5rem;margin-top:0.6rem;flex-wrap:wrap;}
.tcpc-thumb img{width:72px;height:56px;object-fit:cover;border-radius:10px;border:1px solid rgba(0,0,0,0.08);}
.tcpc-casa-info{background:#f7f9fc;border-radius:16px;padding:1rem;border-left:4px solid var(--cuba-blue);}
.tcpc-btn{display:inline-block;text-decoration:none;border-radius:999px;padding:0.65rem 1.2rem;font-weight:700;}
.tcpc-btn-primary{background:var(--cuba-red);color:#fff;box-shadow:0 8px 20px rgba(0,0,0,0.2);}
.tcpc-btn-primary:hover{opacity:0.92;}
.tcpc-muted{opacity:0.8;margin:0.3rem 0 1rem;}
.tcpc-calendar-section{margin-top:1.2rem;padding-top:0.6rem;border-top:1px solid rgba(0,0,0,0.08);}
.tcpc-subtitle{margin:0 0 0.6rem;color:var(--cuba-blue);}

@media (max-width: 900px){
  .tcpc-casa-hero{grid-template-columns: 1fr;}
  .tcpc-title{font-size:1.6rem;}
  .tcpc-thumb img{width:66px;height:52px;}
}


/* ===== MENÚ MÓVIL FIX DEFINITIVO (SIN JS) ===== */
.tcpc-nav-toggle{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
}

@media (max-width: 900px){
  .tcpc-main-nav{
    display:none !important;
  }
  .tcpc-nav-toggle:checked ~ .tcpc-main-nav{
    display:block !important;
  }
  .tcpc-header{
    position:absolute;
    z-index:99999;
  }
  .tcpc-main-nav{
    z-index:100000 !important;
  }
}
