/* ========================= */
/* VARIABLES                */
/* ========================= */
:root {
    --azul-bergondo: #002F4E;
    --azul-acento:   #006884;
    --vermello:      #922335;
    --vermello-claro:#C8102E;
    --pedra:         #F8F9FA;
    --texto:         #333333;
    --col-mid:       #1A6FBF;
    --col-light:     #EBF4FF;
    --radius:        0.6rem;
    --shadow:        0 4px 20px rgba(0, 47, 78, 0.10);
    --shadow-sm:     0 2px 8px  rgba(0, 47, 78, 0.08);
}

/* ========================= */
/* BASE                      */
/* ========================= */
body {
    font-family: 'Inter', sans-serif;
    color: var(--texto);
    background-color: white;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.lang-link) {
    color: var(--vermello);
    text-decoration: none;
    transition: color 0.2s;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.lang-link):hover {
    color: var(--vermello-claro);
    text-decoration: underline;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* ========================= */
/* NAVBAR                    */
/* ========================= */
.custom-navbar {
    background: var(--azul-bergondo) !important;
    padding: 0.6rem 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-logo {
    height: 50px;
    width: auto;
}

.custom-navbar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.75rem !important;
    letter-spacing: 2px;
    font-weight: 400;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.3s;
    position: relative;
}

.custom-navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 5px;
    left: 1.2rem;
    background-color: var(--azul-acento);
    transition: width 0.3s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: #fff !important;
}

.custom-navbar .nav-link:hover::after {
    width: calc(100% - 2.4rem);
}

.lang-link {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    opacity: 0.8;
    padding: 0.5rem 0.8rem !important;
}

.lang-link:hover { opacity: 1 !important; }

/* Dropdown de idioma */
.custom-navbar .dropdown-menu {
    background: var(--azul-bergondo);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0;
    min-width: 5rem;
    padding: 0.25rem 0;
}

.custom-navbar .dropdown-item {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 0.4rem 1rem;
}

.custom-navbar .dropdown-item:hover,
.custom-navbar .dropdown-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.btn-reserva {
    background: linear-gradient(to bottom, var(--vermello-claro), var(--vermello)) !important;
    color: white !important;
    border-radius: 0;
    font-size: 0.75rem !important;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 25px !important;
    transition: all 0.3s ease;
    border: none;
}

.btn-reserva:hover {
    background: linear-gradient(to bottom, var(--vermello), #6e1727) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(146, 35, 53, 0.4);
}

/* ========================= */
/* HERO (vídeo fondo)        */
/* ========================= */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Iframe de Vimeo fixo — efecto parallax como background-attachment:fixed */
.hero-video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 177.78vh;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
}

/* Overlay escuro sobre o vídeo */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(rgba(0, 47, 78, 0.6), rgba(0, 47, 78, 0.35));
}

/* Contido por riba do overlay */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 400;
    color: white;
}

@media (max-width: 767px) {
    .hero { height: 60vh; }
    .hero-title { font-size: 2.4rem; }
}

/* ========================= */
/* SECCIÓNS                  */
/* ========================= */
.section { padding: 100px 0; background: white; }
.section.bg-light { background: var(--pedra) !important; }

/* Sección tipo acordeón */
.section-accordion {
    border-bottom: 1px solid #e0e0e0;
    background: var(--pedra);
}
.section-accordion:first-of-type {
    border-top: 1px solid #e0e0e0;
}

.acc-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}
.acc-trigger span {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--azul-bergondo);
    letter-spacing: 0.01em;
}
.acc-trigger:hover span {
    color: var(--azul-acento);
}
.acc-icon {
    color: var(--azul-acento);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}
.acc-body {
    padding: 20px 0 60px;
}

.card-expand-body {
    padding: 32px 40px;
    background: white;
    border-left: 4px solid var(--azul-acento);
    margin-bottom: 8px;
    color: var(--texto);
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
}
.card-expand-body p { margin-bottom: 1rem; }
.card-expand-body p:last-child { margin-bottom: 0; }

.btn-ler-mais {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--azul-acento);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}
.btn-ler-mais:hover { color: var(--azul-bergondo); }
.btn-ler-mais[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.section-title {
    color: var(--azul-bergondo);
    font-size: 2.5rem;
}

.section-text {
    color: var(--texto);
    line-height: 1.8;
}

.gold-divider {
    width: 40px;
    height: 1px;
    background: var(--azul-acento);
    margin: 25px auto;
}

.gold-text {
    color: var(--azul-acento) !important;
}

/* ========================= */
/* FEATURE CARDS             */
/* ========================= */
.feature-card {
    background: transparent !important;
    border: none !important;
    padding: 30px !important;
}

.feature-card i {
    font-size: 2.8rem !important;
    color: var(--azul-bergondo) !important;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--azul-bergondo);
    font-family: 'Playfair Display', serif;
}

/* ========================= */
/* LIGAZÓNS COMO CHEGAR      */
/* ========================= */
.map-service-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.1rem;
    border: 1.5px solid #dde4ed;
    border-radius: 0.55rem;
    color: var(--azul-bergondo) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    background: white;
    box-shadow: 0 1px 4px rgba(0,47,78,0.06);
}

.map-service-btn .map-icon {
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.map-service-btn .map-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.35;
    transition: opacity 0.25s, transform 0.25s;
}

.map-service-btn:hover {
    border-color: var(--vermello);
    color: var(--vermello) !important;
    transform: translateX(5px);
    box-shadow: 0 3px 12px rgba(146, 35, 53, 0.12);
    text-decoration: none !important;
}

.map-service-btn:hover .map-arrow {
    opacity: 0.7;
    transform: translate(2px, -2px);
}

/* ========================= */
/* PHOTO SPHERE VIEWER       */
/* ========================= */
.psv-wrapper {
    height: 520px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

@media (max-width: 767px) {
    .psv-wrapper { height: 320px; }
}

/* ========================= */
/* IMAXE CON MARCO           */
/* ========================= */
.image-stack img {
    border: 1px solid #eee;
    padding: 10px;
    background: white;
}

/* ========================= */
/* SECCIÓN CTA RESERVA       */
/* ========================= */
.reservation-section {
    background: linear-gradient(rgba(0, 47, 78, 0.85), rgba(0, 47, 78, 0.85)),
                url('/static/img/imaxe_mosteiro.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.reservation-section h2 {
    font-family: 'Playfair Display', serif;
    color: white;
}

@media (max-width: 767px) {
    .reservation-section { background-attachment: scroll; }
}

.btn-gold {
    background: linear-gradient(to bottom, var(--vermello-claro), var(--vermello)) !important;
    color: white !important;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(to bottom, var(--vermello), #6e1727) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(146, 35, 53, 0.5);
}

/* ========================= */
/* FOOTER                    */
/* ========================= */
.site-footer {
    background: var(--azul-bergondo);
    color: rgba(255,255,255,0.6);
    padding: 40px 0;
}

.footer-bergondo-logo {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.75;
    transition: opacity 0.2s;
}

.footer-bergondo-logo:hover {
    opacity: 1;
}

.site-footer .small {
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    color: white !important;
    opacity: 1 !important;
}

/* ========================= */
/* FORMULARIOS               */
/* ========================= */
.form-control, .form-select {
    border: 1.5px solid #CBD8E6;
    border-radius: 0.45rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 0.65rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--col-mid);
    box-shadow: 0 0 0 3px rgba(26, 111, 191, 0.15);
}

.form-label { font-weight: 600; font-size: 0.95rem; color: var(--azul-bergondo); margin-bottom: 0.4rem; font-family: 'Inter', sans-serif; }

/* ========================= */
/* CARDS (formulario)        */
/* ========================= */
.card {
    border: none !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    background: white;
}

.card-header {
    border-radius: var(--radius) var(--radius) 0 0 !important;
    border-bottom: 1px solid rgba(163, 204, 255, 0.3) !important;
    font-weight: 600;
}

/* ========================= */
/* BOTÓNS                    */
/* ========================= */
.btn-primary {
    background: var(--azul-bergondo) !important;
    border-color: var(--azul-bergondo) !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: var(--col-mid) !important;
    border-color: var(--col-mid) !important;
    transform: translateY(-1px);
}

/* ========================= */
/* ALERTAS                   */
/* ========================= */
.alert-info {
    background: var(--col-light);
    border-color: #A3CCFF;
    color: var(--azul-bergondo);
}

/* ========================= */
/* FLATPICKR                 */
/* ========================= */
.flatpickr-calendar {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    font-family: 'Inter', sans-serif !important;
    width: 100% !important;
    max-width: 100% !important;
}

.flatpickr-calendar.inline {
    display: block !important;
    width: 100% !important;
}

.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-days,
.dayContainer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Grid de 7 columnas iguais para cabeceiras e días */
.flatpickr-weekdaycontainer,
.dayContainer {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    width: 100% !important;
}

.flatpickr-weekday {
    float: none !important;
    text-align: center !important;
    color: white !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 8px 0 !important;
}

.flatpickr-day {
    max-width: none !important;
    width: auto !important;
    height: 44px !important;
    line-height: 44px !important;
    border-radius: 4px !important;
    text-align: center !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--azul-bergondo) !important;
    border-color: var(--azul-bergondo) !important;
}

.flatpickr-day:hover {
    background: var(--col-light) !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-weekdays {
    background: var(--azul-acento) !important;
    color: white !important;
    fill: white !important;
}

.flatpickr-months {
    padding-top: 20px !important;
    padding-bottom: 0 !important;
}

.flatpickr-weekdays {
    padding-top: 12px !important;
    padding-bottom: 8px !important;
    margin-top: 0 !important;
}

.flatpickr-weekday { color: white !important; }

.flatpickr-prev-month svg,
.flatpickr-next-month svg { fill: #A3CCFF !important; }

/* ========================= */
/* PÁXINA RESERVA — HERO    */
/* ========================= */
.reserva-hero {
    padding: 60px 0 50px;
    text-align: center;
    background: var(--pedra);
}

.reserva-hero-title {
    font-family: 'Playfair Display', serif;
    color: var(--azul-bergondo);
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

@media (max-width: 767px) {
    .reserva-hero-title { font-size: 2rem; }
}

/* ========================= */
/* PÁXINAS INTERIORES        */
/* ========================= */
.inner-page {
    padding: 60px 0 80px;
    min-height: 60vh;
}

.inner-page h1,
.inner-page h2 {
    color: var(--azul-bergondo);
}

/* ========================= */
/* MOBILE                    */
/* ========================= */
@media (max-width: 767px) {
    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .card-body { padding: 1.25rem !important; }
    .reserva-calendar-col { margin-bottom: 1.5rem; }
}


