/*
Theme Name:  Villa El Guanche Child
Theme URI:   https://villaelguanche.com
Description: Child theme for Villa El Guanche — multi-property site restructure (added El Guanche II, fixed nav/footer, new portal homepage and individual property pages).
Author:      Villa El Guanche
Template:    twentyseventeen
Version:     1.1.0
Text Domain: villa-el-guanche-child

MODIFIED: 2026-05 — Initial child theme creation
WHY: Restructuring site for two independent properties (Villa El Guanche + El Guanche II).
     Child theme ensures parent theme updates do not overwrite customisations.
*/

/* ==========================================================================
   TABLE OF CONTENTS
   1.  CSS Variables
   2.  Global resets / helpers
   3.  Buttons
   4.  Full-width page layout override
   5.  Portal Homepage — Hero
   6.  Portal Homepage — Property Cards
   7.  Portal Homepage — Amenities Strip
   8.  Portal Homepage — Contact Section
   9.  Property Page — Hero
   10. Property Page — Photo Gallery
   11. Property Page — Description
   12. Property Page — Specs Grid
   13. Property Page — Pricing Table
   14. Property Page — "¿Qué incluye?" section
   15. Property Page — Availability Calendar
   16. Property Page — Bottom CTA
   17. Footer overrides
   18. Navigation — dropdown support
   19. Mobile / Responsive (@media)
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. CSS Variables
   -------------------------------------------------------------------------- */

:root {
    /* Paleta arena cálida — derivada de #E39C51 (fachada), desaturada
       y aclarada para un tono suave tipo terracota/arena canaria */
    --veg-amber:       #D4A882;   /* arena suave — acento decorativo */
    --veg-green:       #A87848;   /* terracota media — botones, links */
    --veg-green-dark:  #7A5230;   /* terracota oscura — fondos con texto blanco */
    --veg-indigo-mid:  #BC8F5E;   /* terracota hover */
    --veg-gold:        #E8C896;   /* arena clara — detalles, bordes */
    --veg-white:       #ffffff;
    --veg-off-white:   #FEF8F2;   /* blanco crema muy suave */
    --veg-grey:        #F0E4D2;   /* arena muy clara */
    --veg-text:        #3A2010;   /* marrón muy oscuro */
    --veg-text-light:  #8C6845;   /* marrón medio */
    --veg-whatsapp:    #25d366;
    --veg-radius:      6px;
    --veg-shadow:      0 4px 16px rgba(80,45,15,0.12);
    --veg-transition:  0.25s ease;
    --veg-max-width:   1100px;
    /* Gutenberg constrained-layout content width */
    --wp--style--global--content-size: 1100px;
    --wp--style--global--wide-size:    1400px;
}


/* --------------------------------------------------------------------------
   2. Global Resets / Helpers
   -------------------------------------------------------------------------- */

.veg-container {
    max-width: var(--veg-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Section spacing rhythm */
.veg-properties,
.veg-amenities-strip,
.veg-contact-section,
.veg-gallery-section,
.veg-description-section,
.veg-specs-section,
.veg-pricing-section,
.veg-calendar-section,
.veg-bottom-cta {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* Constrain inner block content to max-width and centre it */
.veg-description-section > *,
.veg-specs-section > *,
.veg-pricing-section > *,
.veg-includes-section > *,
.veg-calendar-section > *,
.veg-bottom-cta > * {
    max-width: var(--veg-max-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Gallery section is intentionally full-bleed */
.veg-gallery-section {
    padding-left: 0;
    padding-right: 0;
}

.veg-section-title {
    font-size: 1.75rem;
    color: var(--veg-green-dark);
    margin-bottom: 1.75rem;
    text-align: center;
}

/* Remove Twenty Seventeen's default margin on the direct main child */
.veg-portal-main,
.veg-property-main {
    margin: 0;
    padding: 0;
}


/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */

.veg-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: var(--veg-radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--veg-transition), color var(--veg-transition), border-color var(--veg-transition);
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.4;
}

.veg-btn-primary {
    background: var(--veg-green);
    color: var(--veg-white) !important;
    border-color: var(--veg-green);
}
.veg-btn-primary:hover,
.veg-btn-primary:focus {
    background: var(--veg-green-dark);
    border-color: var(--veg-green-dark);
    color: var(--veg-white);
    text-decoration: none;
}

.veg-btn-secondary {
    background: var(--veg-white);
    color: var(--veg-green);
    border-color: var(--veg-white);
}
.veg-btn-secondary:hover,
.veg-btn-secondary:focus {
    background: var(--veg-off-white);
    color: var(--veg-green-dark);
    text-decoration: none;
}

.veg-btn-outline {
    background: transparent;
    color: var(--veg-green);
    border-color: var(--veg-green);
}
.veg-btn-outline:hover,
.veg-btn-outline:focus {
    background: var(--veg-indigo-mid);
    border-color: var(--veg-indigo-mid);
    color: var(--veg-white);
    text-decoration: none;
}

.veg-btn-whatsapp {
    background: transparent;
    color: var(--veg-whatsapp) !important;
    border-color: var(--veg-whatsapp);
}
.veg-btn-whatsapp:hover {
    background: var(--veg-whatsapp);
    border-color: var(--veg-whatsapp);
    color: var(--veg-white) !important;
    text-decoration: none;
}


/* --------------------------------------------------------------------------
   4. Full-width page layout override
      Removes the 58em / 740px max-width Twenty Seventeen applies to #primary
      on pages that use our custom templates.
   -------------------------------------------------------------------------- */

.veg-full-width-page #primary,
body.page-template-page-villa-el-guanche #primary,
body.page-template-page-el-guanche-ii #primary {
    max-width: 100%;
    width: 100%;
}

/* Also remove the side padding Twenty Seventeen applies on large screens */
@media screen and (min-width: 48em) {
    .veg-full-width-page .entry-content,
    .veg-full-width-page .entry-summary {
        max-width: 100%;
    }
}

/* Suppress the parent theme's featured image header on front page */
.home .single-featured-image-header {
    display: none;
}

/* Remove the large gap Twenty Seventeen adds above content on interior pages */
body.page-template-page-villa-el-guanche #content,
body.page-template-page-villa-el-guanche .site-content,
body.page-template-page-el-guanche-ii #content,
body.page-template-page-el-guanche-ii .site-content,
body.page-template-page-localizacion #content,
body.page-template-page-localizacion .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* --------------------------------------------------------------------------
   4b. Site header — compact dark-amber navbar
       Twenty Seventeen stacks branding + navigation-top in two tall bands.
       We collapse them into one slim bar (~64px) with amber background.
   -------------------------------------------------------------------------- */

/* One unified background for the whole header */
#masthead,
.navigation-top {
    background-color: var(--veg-green-dark) !important;
    border: none !important;
}

#masthead {
    border-bottom: 3px solid var(--veg-amber) !important;
    margin-bottom: 0 !important;
}

/* ── Header propio (veg-header) — estructura limpia sin herencia de T17 ── */

.veg-header {
    background-color: var(--veg-green-dark);
    border-bottom: 3px solid var(--veg-amber);
    position: relative;
    z-index: 100;
}

.veg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    min-height: 64px;
}

/* Logo / título */
.veg-header-logo .site-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.veg-header-logo .site-title a,
.veg-header-logo .site-title a:visited {
    color: var(--veg-white);
    text-decoration: none;
}

.veg-header-logo .site-title a:hover {
    color: var(--veg-gold);
}

/* Nav */
.veg-header-nav .veg-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.veg-header-nav .veg-nav-menu li {
    position: relative;
}

.veg-header-nav .veg-nav-menu li a {
    display: block;
    padding: 0.85rem 1rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color var(--veg-transition);
}

.veg-header-nav .veg-nav-menu li a:hover,
.veg-header-nav .veg-nav-menu li.current-menu-item > a,
.veg-header-nav .veg-nav-menu li.current-menu-parent > a {
    color: var(--veg-gold);
}

/* Dropdown */
.veg-header-nav .veg-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--veg-green-dark);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border-radius: var(--veg-radius);
    min-width: 180px;
    z-index: 9999;
    list-style: none;
    padding: 0.4rem 0;
    margin: 0;
}

.veg-header-nav .veg-nav-menu li:hover > .sub-menu,
.veg-header-nav .veg-nav-menu li:focus-within > .sub-menu {
    display: block;
}

.veg-header-nav .veg-nav-menu .sub-menu li a {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

/* ── Hamburguesa ── */
.veg-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.veg-menu-toggle:focus,
.veg-menu-toggle:active,
.veg-menu-toggle:focus-visible {
    outline: none;
    background: transparent;
    box-shadow: none;
}

.veg-hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--veg-white);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animación X cuando está abierto */
.veg-menu-toggle.is-active .veg-hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.veg-menu-toggle.is-active .veg-hamburger-bar:nth-child(2) {
    opacity: 0;
}
.veg-menu-toggle.is-active .veg-hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile ── */
@media screen and (max-width: 47.9em) {
    .veg-menu-toggle {
        display: flex;
    }

    .veg-header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--veg-green-dark);
        border-top: 1px solid rgba(255,255,255,0.1);
        border-bottom: 3px solid var(--veg-amber);
        z-index: 9998;
        padding: 0.5rem 0;
    }

    .veg-header-nav.is-open {
        display: block;
    }

    .veg-header-nav .veg-nav-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .veg-header-nav .veg-nav-menu li a {
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    /* Submenú siempre visible en mobile */
    .veg-header-nav .veg-nav-menu .sub-menu {
        display: block;
        position: static;
        background: rgba(0,0,0,0.2);
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    .veg-header-nav .veg-nav-menu .sub-menu li a {
        padding-left: 2.5rem;
        font-size: 0.85rem;
    }
}

/* Asegurar que el header tenga position:relative para el menú desplegable */
.veg-header {
    position: relative;
}

/* Nav del tema padre (Twenty Seventeen) — ya no se usa, ocultar por si acaso */
#masthead .navigation-top,
#masthead .site-branding-wrapper {
    display: none !important;
}


/* --------------------------------------------------------------------------
   5. Portal Homepage — Hero
   -------------------------------------------------------------------------- */

.veg-hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.veg-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.veg-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.25rem;
    max-width: 800px;
}

.veg-hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--veg-white);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    line-height: 1.15;
}

.veg-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: rgba(255,255,255,0.92);
    margin: 0 0 2rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    line-height: 1.5;
}

.veg-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.veg-hero .veg-btn {
    min-width: 180px;
    font-size: 1.05rem;
    padding: 0.85rem 2rem;
}


/* --------------------------------------------------------------------------
   6. Portal Homepage — Property Cards
   -------------------------------------------------------------------------- */

.veg-properties {
    background: var(--veg-off-white);
}

.veg-properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.veg-property-card {
    background: var(--veg-white);
    border-radius: var(--veg-radius);
    overflow: hidden;
    box-shadow: var(--veg-shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--veg-transition), box-shadow var(--veg-transition);
}

.veg-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.16);
}

.veg-property-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ccc;
}

.veg-property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.veg-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    color: var(--veg-text-light);
    font-size: 1.1rem;
    font-style: italic;
}

.veg-property-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.veg-property-card-title {
    font-size: 1.5rem;
    color: var(--veg-green-dark);
    margin: 0 0 0.75rem;
}

.veg-property-card-desc {
    color: var(--veg-text-light);
    margin-bottom: 1rem;
    flex: 1;
}

.veg-property-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--veg-text);
}

.veg-property-specs li {
    padding: 0.2rem 0;
    border-bottom: 1px solid var(--veg-grey);
}

.veg-property-specs li:last-child {
    border-bottom: none;
}

.veg-card-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}


/* --------------------------------------------------------------------------
   7. Portal Homepage — Tagline Strip (sustituye la antigua amenities strip)
   -------------------------------------------------------------------------- */

.veg-tagline-strip {
    background: var(--veg-off-white);
    border-top: 1px solid var(--veg-grey);
    border-bottom: 1px solid var(--veg-grey);
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--veg-text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.veg-tagline-sep {
    color: var(--veg-amber);
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   7b. (legacy) Amenities strip — oculta por si acaso queda referencia
   -------------------------------------------------------------------------- */

.veg-amenities-strip {
    display: none;
}

.veg-amenities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.veg-amenity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
    max-width: 160px;
    gap: 0.4rem;
}

.veg-amenity-icon {
    font-size: 2rem;
    line-height: 1;
}

.veg-amenity-label {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255,255,255,0.95);
}


/* --------------------------------------------------------------------------
   8. Portal Homepage — Contact Section
   -------------------------------------------------------------------------- */

.veg-contact-section {
    background: var(--veg-white);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* Narrow centred wrapper — tighter than the global max-width */
.veg-contact-inner {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.veg-contact-col-info {
    display: flex;
    flex-direction: column;
}

.veg-contact-col-info .veg-section-title {
    text-align: left;
    margin-bottom: 1.25rem;
}

.veg-contact-info p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.veg-contact-info a {
    color: var(--veg-green);
}

/* Map column stretches to full height of the left column */
.veg-contact-col-map {
    display: flex;
    flex-direction: column;
}

.veg-contact-col-map > div,
.veg-contact-col-map .wpgmaps_map_widget_holder,
.veg-contact-col-map .wpgmza_map {
    flex: 1;
    height: 100% !important;
    min-height: 280px;
    border-radius: var(--veg-radius);
    overflow: hidden;
}

.veg-contact-col-map iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 280px;
    display: block;
    border-radius: var(--veg-radius);
}

@media screen and (max-width: 600px) {
    .veg-contact-inner {
        grid-template-columns: 1fr;
    }
}


/* --------------------------------------------------------------------------
   9. Property Page — Hero
   The hero uses a Gutenberg wp:cover block. Gutenberg already provides:
   · The background image (via <img class="wp-block-cover__image-background">)
   · The dim overlay (via <span class="wp-block-cover__background has-background-dim">)
   · Flex centering of the inner container
   So we only need to set dimensions and typography — no extra ::before overlay.
   -------------------------------------------------------------------------- */

/* Suppress the PHP-template ::before overlay — Gutenberg has its own */
.wp-block-cover.veg-property-hero::before {
    display: none;
}

/* Override Gutenberg's min-height and add a warm gradient via the overlay span */
.wp-block-cover.veg-property-hero {
    min-height: 50vh !important;
    justify-content: center;
}

/* Warm-tinted overlay: darken bottom for legibility, keep top lighter */
.wp-block-cover.veg-property-hero .wp-block-cover__background {
    background: linear-gradient(
        to bottom,
        rgba(42, 26, 10, 0.25) 0%,
        rgba(42, 26, 10, 0.70) 100%
    ) !important;
    opacity: 1 !important;
}

/* Constrain and centre the inner text block */
.wp-block-cover.veg-property-hero .wp-block-cover__inner-container {
    max-width: var(--veg-max-width);
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Hero typography */
.wp-block-cover.veg-property-hero h1,
.wp-block-cover.veg-property-hero h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
    margin-bottom: 0.4rem;
    line-height: 1.15;
}

.wp-block-cover.veg-property-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-shadow: 0 1px 6px rgba(0,0,0,0.45);
    margin: 0;
    opacity: 0.92;
}

/* CTA buttons inside the hero */
.wp-block-cover.veg-property-hero .wp-block-buttons {
    margin-top: 1.75rem;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Botón outline — "Ver galería" */
.wp-block-cover.veg-property-hero .wp-block-button__link {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.85) !important;
    color: #ffffff !important;
    padding: 0.65rem 1.75rem !important;
    border-radius: var(--veg-radius) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    transition: background var(--veg-transition), border-color var(--veg-transition) !important;
}
.wp-block-cover.veg-property-hero .wp-block-button__link:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: #ffffff !important;
    text-decoration: none !important;
}

/* Botón sólido — "Reservar" (segundo botón) */
.wp-block-cover.veg-property-hero .wp-block-button.veg-hero-cta .wp-block-button__link {
    background: var(--veg-amber) !important;
    border-color: var(--veg-amber) !important;
    color: var(--veg-green-dark) !important;
}
.wp-block-cover.veg-property-hero .wp-block-button.veg-hero-cta .wp-block-button__link:hover {
    background: var(--veg-gold) !important;
    border-color: var(--veg-gold) !important;
}


/* Homepage hero — taller than property page heroes */
.home .wp-block-cover.veg-property-hero {
    min-height: 70vh !important;
}

/* --------------------------------------------------------------------------
   10. Property Page — Photo Gallery
   -------------------------------------------------------------------------- */

.veg-gallery-section {
    background: #241208;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    padding-left: 11% !important;
    padding-right: 11% !important;
    box-sizing: border-box;
}

/* Quitar borde blanco + esquinas redondeadas en galerías de propiedad */
.veg-gallery-section .fg-item-inner,
.veg-gallery-section .foogallery .fg-item-inner,
.veg-gallery-section .foogallery.fg-light .fg-item-inner {
    border-width: 0 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: var(--veg-radius) !important;
    overflow: hidden !important;
}

.veg-gallery-section .veg-container {
    max-width: 100%;
    padding: 0;
}

/* Section headings — color de marca en todas las secciones de propiedad */
.veg-description-section h2,
.veg-specs-section h2,
.veg-pricing-section h2,
.veg-includes-section h2,
.veg-calendar-section h2 {
    color: var(--veg-green-dark);
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 1.25rem;
}

/* Accent line under section headings */
.veg-description-section h2::after,
.veg-specs-section h2::after,
.veg-pricing-section h2::after,
.veg-includes-section h2::after,
.veg-calendar-section h2::after {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    background: var(--veg-amber);
    border-radius: 2px;
    margin-top: 0.5rem;
}

/* Placeholder gallery grid for El Guanche II */
.veg-gallery-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4px;
}

.veg-gallery-placeholder-item {
    aspect-ratio: 4/3;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
}


/* --------------------------------------------------------------------------
   11. Property Page — Description
   -------------------------------------------------------------------------- */

.veg-description-section {
    background: var(--veg-white);
    text-align: center;
}

.veg-description-section h2 {
    text-align: center;
}

.veg-description-section h2::after {
    margin-left: auto;
    margin-right: auto;
}

.veg-description-section p {
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.9;
    color: var(--veg-text);
    font-style: italic;
    padding-top: 1.25rem;
}

.veg-description-section p::before {
    content: '\201C';
    display: block;
    font-size: 5rem;
    color: var(--veg-amber);
    font-style: normal;
    line-height: 0.75;
    margin-bottom: 0.4rem;
    font-family: Georgia, 'Times New Roman', serif;
}

.veg-description-section .veg-description-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.9;
    color: var(--veg-text);
}


/* --------------------------------------------------------------------------
   12. Property Page — Specs Grid
   -------------------------------------------------------------------------- */

.veg-specs-section {
    background: var(--veg-off-white);
}

.veg-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.veg-spec-item {
    background: var(--veg-white);
    border-radius: var(--veg-radius);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.veg-spec-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.veg-spec-label {
    font-size: 0.8rem;
    color: var(--veg-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.veg-spec-value {
    font-size: 1rem;
    color: var(--veg-text);
    font-weight: 700;
}


/* --------------------------------------------------------------------------
   13. Property Page — Pricing Table
   -------------------------------------------------------------------------- */

.veg-pricing-section {
    background: var(--veg-white);
}

.veg-pricing-table-wrap {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.veg-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.veg-pricing-table thead th {
    background: var(--veg-green);
    color: var(--veg-white);
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.veg-pricing-table tbody tr:nth-child(even) {
    background: var(--veg-off-white);
}

.veg-pricing-table tbody td {
    padding: 0.65rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--veg-grey);
}

.veg-pricing-table tbody tr:last-child td {
    border-bottom: none;
    font-style: italic;
    color: var(--veg-text-light);
    font-size: 0.9rem;
}

.veg-pricing-footnotes {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--veg-text-light);
    line-height: 1.7;
}

.veg-pricing-footnotes ul {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
}

.veg-pricing-footnotes li {
    margin-bottom: 0.3rem;
}


/* --------------------------------------------------------------------------
   14. Property Page — ¿Qué incluye el precio?
   -------------------------------------------------------------------------- */

.veg-includes-section {
    background: var(--veg-off-white);
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

.veg-includes-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem auto 0;
    max-width: 600px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.veg-includes-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    background: var(--veg-white);
    border-radius: var(--veg-radius);
    font-size: 0.95rem;
}

.veg-includes-list li::before {
    content: "✓";
    color: var(--veg-green);
    font-weight: 700;
    flex-shrink: 0;
}

.veg-placeholder-note {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.8rem;
    color: var(--veg-text-light);
    font-style: italic;
}


/* --------------------------------------------------------------------------
   15. Property Page — Availability Calendar
   -------------------------------------------------------------------------- */

.veg-calendar-section {
    background: var(--veg-white);
}

.veg-calendar-section .veg-section-title {
    text-align: left;
}

.veg-calendar-wrap {
    margin-top: 1.25rem;
    overflow-x: auto;
}

.veg-calendar-contact {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--veg-off-white);
    border-radius: var(--veg-radius);
    font-size: 0.95rem;
    line-height: 1.7;
}

.veg-calendar-contact a {
    color: var(--veg-green);
    font-weight: 600;
}

.veg-calendar-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}


/* --------------------------------------------------------------------------
   16. Property Page — Bottom CTA
   -------------------------------------------------------------------------- */

.veg-bottom-cta {
    background: var(--veg-green-dark);
    color: var(--veg-white);
    text-align: center;
    padding: 3rem 1.25rem;
}

.veg-bottom-cta-text {
    font-size: 1.1rem;
    margin: 0 0 1.5rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
}

.veg-bottom-cta .veg-btn-primary,
.veg-bottom-cta .wp-block-button__link,
.veg-bottom-cta .wp-element-button {
    background: var(--veg-white) !important;
    border-color: var(--veg-white) !important;
    color: var(--veg-green-dark) !important;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: var(--veg-radius);
    text-decoration: none;
    transition: background var(--veg-transition), color var(--veg-transition);
}

.veg-bottom-cta .veg-btn-primary:hover,
.veg-bottom-cta .wp-block-button__link:hover,
.veg-bottom-cta .wp-element-button:hover {
    background: var(--veg-gold) !important;
    border-color: var(--veg-gold) !important;
    color: var(--veg-green-dark) !important;
    text-decoration: none;
}

.veg-bottom-cta-text,
.veg-bottom-cta p {
    color: rgba(255, 255, 255, 0.92) !important;
}


/* --------------------------------------------------------------------------
   17. Footer Overrides
   -------------------------------------------------------------------------- */

/* Remove "Proudly powered by WordPress" or override site-info */
.site-info .imprint {
    display: none;
}

/* Footer widget area: more breathing room */
.site-footer .widget-area {
    padding: 2rem 0;
}

/* Social links: fix any stale placeholder link colours */
.social-links-menu a {
    color: var(--veg-text-light);
    transition: color var(--veg-transition);
}

.social-links-menu a:hover {
    color: var(--veg-green);
}


/* --------------------------------------------------------------------------
   18. Navigation — Dropdown support
      Twenty Seventeen has basic dropdown CSS; we just polish it.
   -------------------------------------------------------------------------- */

/* Ensure dropdown items are reachable */
.main-navigation .sub-menu {
    background: var(--veg-white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--veg-radius);
    box-shadow: var(--veg-shadow);
    z-index: 9999;
    min-width: 200px;
}

.main-navigation .sub-menu a {
    color: var(--veg-text);
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    display: block;
    transition: background var(--veg-transition);
}

.main-navigation .sub-menu a:hover {
    background: var(--veg-off-white);
    color: var(--veg-green);
}

/* Highlight current parent when dropdown is active */
.main-navigation .current-menu-parent > a {
    color: var(--veg-green);
}


/* --------------------------------------------------------------------------
   19. Twenty Seventeen — front page overlap fixes
       The theme applies negative top-margin and custom-header-media when a
       header image is set in the Customizer, causing the hero to overlap or
       leave unexpected gaps. Reset all of those on the front page.
   -------------------------------------------------------------------------- */

/* Supress negative margin that slides content under the header image */
.home.has-header-image .site-content,
.home .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ocultar solo la imagen de cabecera, NO el contenedor custom-header */
.custom-header-media,
.single-featured-image-header,
.custom-header .wp-custom-header {
    display: none !important;
}

/* custom-header solo tiene el título — quitarle márgenes propios */
.custom-header {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    width: auto !important;
}

/* Remove the Twenty Seventeen entry-header / page-title on front page */
.home .entry-header,
.home .page-header,
.home > .site-content > .wrap > .entry-header {
    display: none;
}

/* Ensure our hero starts flush against the nav bar */
.home #primary.veg-full-width-page {
    padding-top: 0;
    margin-top: 0;
}

/* Home: sin línea ámbar inferior para que el hero conecte limpio */
.home .veg-header {
    border-bottom: none;
}

/* Nav dropdown: use indigo accent instead of default link color */
.main-navigation .sub-menu a:hover {
    color: var(--veg-green);
}

/* Active / current page in nav */
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-parent > a {
    color: var(--veg-green);
}

/* --------------------------------------------------------------------------
   21. Página Localización
   -------------------------------------------------------------------------- */

.veg-loc-hero {
    position: relative;
    background-image: url('/wp-content/uploads/2022/11/Vista-Aerea-scaled.jpeg');
    background-size: cover;
    background-position: center 40%;
    color: var(--veg-white);
    padding: 5rem 2rem !important;
    text-align: center;
}

.veg-loc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(42, 26, 10, 0.55) 0%,
        rgba(42, 26, 10, 0.75) 100%
    );
}

.veg-loc-hero > * {
    position: relative;
    z-index: 1;
}

.veg-loc-hero h1 {
    color: var(--veg-white) !important;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
}

.veg-loc-hero p {
    color: rgba(255,255,255,0.88);
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
    margin: 0;
}

.veg-loc-map-section {
    padding: 2.5rem 2rem !important;
    background: var(--veg-off-white);
}

.veg-loc-map-section > *,
.veg-loc-directions > * {
    max-width: var(--veg-max-width);
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    box-sizing: border-box;
}

.veg-map-wrap {
    position: relative;
    height: 420px;
    overflow: hidden;
    border-radius: var(--veg-radius);
    box-shadow: var(--veg-shadow);
}

.veg-map-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.veg-map-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--veg-text-light);
    font-style: italic;
}

.veg-loc-directions {
    padding: 2.5rem 2rem !important;
    background: var(--veg-white);
}

.veg-loc-directions h2 {
    color: var(--veg-green-dark);
    margin-bottom: 1.5rem;
}

.veg-directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

@media screen and (max-width: 600px) {
    .veg-map-wrap {
        height: 260px;
    }
    .veg-directions-grid {
        grid-template-columns: 1fr;
    }
}

.veg-direction-item {
    background: var(--veg-off-white);
    border-radius: var(--veg-radius);
    padding: 1.25rem;
    border-left: 3px solid var(--veg-amber);
}

.veg-direction-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.veg-direction-item strong {
    display: block;
    color: var(--veg-green-dark);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.veg-direction-item p {
    font-size: 0.875rem;
    color: var(--veg-text-light);
    line-height: 1.6;
    margin: 0;
}

/* --------------------------------------------------------------------------
   20. Google Reviews Section
   -------------------------------------------------------------------------- */

.veg-reviews-section {
    padding: 4rem 1.5rem;
    background: var(--veg-off-white);
    text-align: center;
}

.veg-reviews-section .veg-section-title {
    margin-bottom: 0.5rem;
}

.veg-reviews-section .veg-section-subtitle {
    font-size: 1rem;
    color: var(--veg-text-light);
    margin-bottom: 2.5rem;
    font-style: italic;
}

.veg-reviews-section .veg-container {
    max-width: 1100px;
}

/* Override plugin CSS variables to match site palette */
.veg-reviews-section .wp-gr {
    --color:           var(--veg-amber);
    --star-color:      var(--veg-amber);
    --rpi-star-color:  var(--veg-amber);
    --rev-color:       var(--veg-white);
    --name-color:      var(--veg-green-dark);
    --head-name-color: var(--veg-green-dark);
    --text-color:      var(--veg-text);
    --btn-color:       var(--veg-green);
    --slider-act-dot-color: var(--veg-green);
    --head-based-color: var(--veg-text-light);
    --powered-color:   var(--veg-text-light);
    font-family: inherit;
}

/* Review cards */
.veg-reviews-section .wp-gr .grw-review-inner {
    border-radius: 14px !important;
    box-shadow: 0 2px 18px rgba(80, 45, 15, 0.10) !important;
    background: var(--veg-white) !important;
    border: 1px solid var(--veg-gold) !important;
    padding: 1.5rem !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.veg-reviews-section .wp-gr .grw-review-inner:hover {
    box-shadow: 0 6px 28px rgba(80, 45, 15, 0.17) !important;
    transform: translateY(-2px);
}

/* Header card (place name + overall rating) */
.veg-reviews-section .wp-gr .grw-header-inner {
    border-radius: 14px !important;
    background: var(--veg-white) !important;
    border: 1px solid var(--veg-gold) !important;
    padding: 1.25rem !important;
}

/* Reviewer name */
.veg-reviews-section .wp-gr .wp-google-name,
.veg-reviews-section .wp-gr.rpi .wp-google-name a,
.veg-reviews-section .wp-gr.rpi .wp-google-name span {
    color: var(--veg-green-dark) !important;
}

/* Review text */
.veg-reviews-section .wp-gr .wp-google-text {
    color: var(--veg-text) !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

/* Date */
.veg-reviews-section .wp-gr .wp-google-time {
    color: var(--veg-text-light) !important;
    font-size: 0.8rem !important;
}

/* Write review button */
.veg-reviews-section .wp-gr .wp-google-wr a {
    background: var(--veg-green) !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    padding: 6px 14px 8px !important;
    text-shadow: none !important;
}

/* Slider navigation dots — centrar horizontalmente */
.veg-reviews-section .rpi .rpi-dots-wrap {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: max-content !important;
}

.veg-reviews-section .rpi-dots .rpi-dot.active {
    background-color: var(--veg-green) !important;
}

/* "Powered by Google" — tono discreto */
.veg-reviews-section .wp-gr .wp-google-powered {
    color: var(--veg-text-light) !important;
    font-size: 0.8rem !important;
}

/* Slider prev/next arrows */
.veg-reviews-section .rpi .rpi-ltgt {
    background-color: var(--veg-white) !important;
    border-color: var(--veg-gold) !important;
    box-shadow: 0 2px 8px rgba(80, 45, 15, 0.12) !important;
}

/* --------------------------------------------------------------------------
   22. Mobile / Responsive
   -------------------------------------------------------------------------- */

/* Tablet (≥ 600px): stack CTA buttons row */
@media screen and (min-width: 600px) {
    .veg-cta-buttons {
        flex-direction: row;
    }

    .veg-includes-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* Desktop (≥ 768px): two-column property cards, contact grid */
@media screen and (min-width: 768px) {
    .veg-properties-grid {
        grid-template-columns: 1fr 1fr;
    }

    .veg-contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .veg-amenities-list {
        gap: 3rem;
    }

    .veg-spec-item {
        padding: 1.5rem 1.25rem;
    }
}

/* Large desktop (≥ 1024px) */
@media screen and (min-width: 1024px) {
    .veg-hero {
        min-height: 80vh;
    }

    .veg-property-hero {
        min-height: 60vh;
    }

    .home .wp-block-cover.veg-property-hero {
        min-height: 80vh !important;
    }

    .veg-card-buttons {
        flex-direction: row;
    }
}
