/* Custom styles for El Corral de Baró */

:root {
    --primary-color: #173c33;
    --secondary-color: #789080;
    --accent-color: #d9a85c;
    --cream: #f5f1e8;
    --paper: #fcfaf5;
    --text-dark: #1f2a26;
    --text-light: #66706b;
}

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

h1, h2, h3, .display-4 { font-family: 'Playfair Display', serif; }
html { scroll-behavior: smooth; }

/* Navigation */
.navbar-brand {
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

/* Logo sizing */
.navbar-brand img {
    max-height: 66px !important;
    width: auto !important;
}

footer img {
    max-height: 128px !important;
    width: auto !important;
}

/* Override Tailwind height classes for logos */
.h-8 {
    height: 66px !important;
}

.h-6 {
    height: 128px !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e3a21;
    border-color: #1e3a21;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 85, 48, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #f0f9ff;
    color: #0c4a6e;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--primary-color) !important;
}

/* 2026 public redesign */
.home-sections { display: flex; flex-direction: column; }
.rural-nav { min-height: 82px; border-bottom: 1px solid rgba(23,60,51,.1); box-shadow: none; }
.rural-nav .nav-link { color: #293a34; padding: .65rem .8rem !important; }
.btn-nav-book { background: var(--primary-color); color: #fff !important; border-radius: 999px; padding: .7rem 1.3rem; }
.btn-nav-book:hover { background: #0e2b24; }
.eyebrow { margin-bottom: 1rem; color: #8b672f; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.rural-section { padding: 110px 0; }
.rural-section h2 { color: var(--primary-color); font-size: clamp(2.35rem,5vw,4.4rem); line-height: 1.04; }
.rural-hero { position: relative; min-height: calc(100vh - 82px); display: flex; align-items: center; overflow: hidden; color: white; }
.rural-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rural-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(8,29,24,.86) 0%,rgba(8,29,24,.53) 48%,rgba(8,29,24,.08) 100%); }
.rural-hero__content { position: relative; z-index: 2; padding-top: 5rem; padding-bottom: 9rem; }
.rural-hero h1 { max-width: 900px; font-size: clamp(3.2rem,7vw,6.9rem); line-height: .96; letter-spacing: -.035em; }
.rural-hero h1 em { color: #e8c98e; font-weight: 500; }
.rural-hero__lead { max-width: 610px; margin: 2rem 0; font-size: 1.2rem; color: rgba(255,255,255,.84); }
.btn-sun { background: var(--accent-color); border: 1px solid var(--accent-color); color: #18241f; border-radius: 999px; padding: .95rem 1.6rem; font-weight: 600; }
.btn-sun:hover { background: #e7bd78; border-color: #e7bd78; transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.65); color: white; border-radius: 999px; padding: .95rem 1.6rem; }
.btn-ghost:hover { color: var(--primary-color); background: white; }
.rural-hero__facts { position: absolute; z-index: 2; bottom: 0; right: 0; display: grid; grid-template-columns: repeat(4,1fr); width: min(760px,68vw); padding: 1.45rem 2.4rem; background: rgba(248,245,237,.94); color: var(--primary-color); backdrop-filter: blur(12px); }
.rural-hero__facts span { border-left: 1px solid rgba(23,60,51,.18); padding-left: 1.3rem; font-size: .84rem; }
.rural-hero__facts strong { display: block; font-family: 'Playfair Display',serif; font-size: 1.7rem; }
.intro-section { background: var(--paper); }
.intro-copy { font-size: 1.18rem; line-height: 1.85; color: var(--text-light); }
.text-link { display: inline-flex; gap: .7rem; margin-top: 1rem; color: var(--primary-color); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--primary-color); padding-bottom: .3rem; }
.home-info-section { padding-top: 30px; background: var(--paper); }
.home-info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.4rem; }
.home-info-card { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 390px; background: white; border: 1px solid #e3ded3; }
.home-info-card__image { position: relative; min-height: 100%; overflow: hidden; }
.home-info-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.home-info-card:hover .home-info-card__image img { transform: scale(1.035); }
.home-info-card__image span { position: absolute; top: 1rem; left: 1rem; display: grid; place-items: center; width: 42px; height: 42px; background: var(--paper); color: var(--primary-color); border-radius: 50%; font-size: .8rem; }
.home-info-card__body { padding: 2.3rem; align-self: center; }
.home-info-card__body h3 { color: var(--primary-color); font-size: 2rem; }
.home-info-card__body > p:not(.eyebrow) { color: var(--text-light); }
.photo-story { position: relative; display: grid; grid-template-columns: 1.5fr .8fr; gap: 1.3rem; min-height: 700px; }
.photo-story figure { margin: 0; overflow: hidden; }
.photo-story img { width: 100%; height: 100%; object-fit: cover; }
.photo-story__main { height: 660px; }
.photo-story__side { height: 430px; margin-top: 80px !important; }
.photo-story__card { position: absolute; right: 5%; bottom: 0; width: min(450px,42%); padding: 2.8rem; background: var(--primary-color); color: white; }
.photo-story__card h3 { font-size: 2.35rem; }
.photo-story__card p:last-child { color: rgba(255,255,255,.73); }
.amenities-section { background: var(--cream); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3.8rem; }
.section-heading > p { max-width: 420px; color: var(--text-light); }
.amenity-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #cfc8b8; }
.amenity-grid article { min-height: 250px; padding: 2rem 1.6rem; border-right: 1px solid #cfc8b8; }
.amenity-grid article:first-child { border-left: 1px solid #cfc8b8; }
.amenity-grid span { color: #a47b3d; font-size: .8rem; }
.amenity-grid h3 { margin: 2.2rem 0 1rem; color: var(--primary-color); font-size: 1.55rem; }
.amenity-grid p { color: var(--text-light); }
.gallery-section { background: #142e28; color: white; }
.gallery-section h2 { color: white; }
.editorial-gallery { display: grid; grid-template-columns: 1.35fr .75fr .75fr; grid-template-rows: 330px 280px; gap: 1rem; }
.editorial-gallery img { width: 100%; height: 100%; object-fit: cover; }
.editorial-gallery img:first-child { grid-row: 1 / 3; }
.editorial-gallery img:last-child { grid-column: 2 / 4; }
.reviews-section { background: var(--paper); }
.review-scores { display: flex; gap: 1rem; margin-top: 2rem; }
.review-scores span { border: 1px solid #d8d2c6; padding: .8rem 1rem; }
.review-scores strong { color: var(--primary-color); margin-left: .5rem; }
.review-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; }
.review-grid blockquote { margin: 0; padding: 2rem; background: white; border: 1px solid #e4dfd5; }
.review-grid blockquote p { font-family: 'Playfair Display',serif; color: #31433c; font-size: 1.35rem; line-height: 1.5; }
.review-grid footer { background: none !important; color: var(--text-light) !important; font-size: .85rem; }
.stars { color: #b78943; letter-spacing: .1em; margin-bottom: 1.2rem; }
.google-reviews { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid #d8d2c6; }
.google-reviews__heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.google-reviews__heading h3 { margin: 0; color: #31433c; }
.google-reviews__heading h3 span { color: var(--text-light); font-family: inherit; font-size: 1rem; font-weight: 400; }
.google-review-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.google-review-card { display: flex; flex-direction: column; min-width: 0; padding: 1.5rem; background: white; border: 1px solid #e4dfd5; border-radius: .35rem; }
.google-review-card .stars { margin-bottom: .8rem; }
.google-review-card__text { display: -webkit-box; overflow: hidden; color: #31433c; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.google-review-card__author { display: flex; align-items: center; gap: .7rem; margin-top: auto; padding-top: .8rem; }
.google-review-card__author img { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; object-fit: cover; }
.google-review-card__author strong,.google-review-card__author small { display: block; }
.google-review-card__author small,.google-review-card footer { color: var(--text-light); font-size: .8rem; }
.google-review-card footer { margin-top: 1rem; background: none !important; }
.google-review-card footer a { color: inherit; }
.booking-banner { position: relative; min-height: 560px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.booking-banner > img,.booking-banner__shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.booking-banner__shade { background: rgba(8,29,24,.58); }
.booking-banner__content { position: relative; z-index: 1; color: white; }
.booking-banner h2 { margin-bottom: 2rem; font-size: clamp(3rem,6vw,5.5rem); }
.rural-footer { padding: 5rem 0 2.5rem; margin: 0 !important; }
.rural-footer h2 { font-size: 2.4rem; }

/* Editable information pages */
.info-detail-page { background: var(--paper); }
.info-detail-hero { padding: 7rem 0 5rem; background: var(--primary-color); color: white; }
.info-detail-hero h1 { max-width: 900px; margin-bottom: 2rem; font-size: clamp(3rem,7vw,6rem); }
.info-back { color: rgba(255,255,255,.8); text-decoration: none; }
.info-back:hover { color: white; }
.info-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 6rem; padding-top: 6rem; padding-bottom: 7rem; }
.info-rich-text { color: #37453f; font-size: 1.12rem; line-height: 1.9; white-space: normal; }
.info-detail-aside { position: relative; }
.info-aside-card { position: sticky; top: 110px; padding: 2.2rem; background: var(--cream); border-top: 4px solid var(--accent-color); }
.info-aside-card h2 { color: var(--primary-color); font-size: 2rem; }
.content-block { margin-top: 3rem; }
.content-block h2 { color: var(--primary-color); font-size: 2rem; }
.content-block--image img { width: 100%; max-height: 560px; object-fit: cover; }
.content-block--quote { padding: 2.2rem; background: var(--cream); font-family: 'Playfair Display',serif; font-size: 1.5rem; }
.other-info-pages { padding: 5rem 0; background: var(--cream); }
.other-info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.other-info-grid a { display: flex; justify-content: space-between; padding: 1.5rem; background: white; color: var(--primary-color); text-decoration: none; border: 1px solid #ded8cb; font-family: 'Playfair Display',serif; font-size: 1.25rem; }

/* Reservation visual continuity */
.reservation-page { background: var(--paper); min-height: 80vh; }
.reservation-intro { padding: 5rem 0 3.5rem; background: var(--primary-color); color: white; }
.reservation-intro h1 { font-size: clamp(2.8rem,6vw,5rem); }
.reservation-intro p:last-child { max-width: 650px; color: rgba(255,255,255,.75); }
.reservation-card { border-radius: 2px; box-shadow: 0 20px 70px rgba(24,43,35,.1) !important; }
.reservation-card:hover { transform: none; }

/* Verified guest reviews */
.guest-review-page { min-height: 80vh; padding: 7rem 0; background: var(--paper); }
.guest-review-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 7rem; align-items: start; }
.guest-review-layout h1,.review-thanks-card h1 { color: var(--primary-color); font-size: clamp(3rem,6vw,5rem); line-height: 1.02; }
.guest-review-intro { max-width: 520px; color: var(--text-light); font-size: 1.15rem; line-height: 1.8; }
.verified-stay { display: flex; gap: 1rem; align-items: center; margin-top: 2.5rem; padding: 1.2rem; border: 1px solid #dcd6ca; background: white; }
.verified-stay > span,.review-thanks-check { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary-color); color: white; }
.verified-stay strong,.verified-stay small { display: block; }
.verified-stay small { color: var(--text-light); }
.guest-review-card { padding: 3rem; background: white; border: 1px solid #e3ded3; box-shadow: 0 24px 80px rgba(24,43,35,.08); }
.review-rating { margin-bottom: 2rem; }
.review-rating legend { font-weight: 600; font-size: 1rem; }
.star-options { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-options input { position: absolute; opacity: 0; }
.star-options label { cursor: pointer; color: #d7d2c8; font-size: 2.25rem; transition: color .15s; }
.star-options input:checked ~ label,.star-options label:hover,.star-options label:hover ~ label { color: #c18c3f; }
.star-options input:focus-visible + label { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.review-received { padding: 3rem 1rem; text-align: center; }
.review-received > span { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.5rem; border-radius: 50%; background: var(--primary-color); color: white; font-size: 1.5rem; }
.review-received h2 { color: var(--primary-color); }
.review-thanks-page { min-height: 75vh; display: grid; place-items: center; padding: 6rem 0; background: var(--cream); }
.review-thanks-card { max-width: 850px; margin: auto; padding: 4.5rem; background: white; text-align: center; }
.review-thanks-check { width: 70px; height: 70px; margin: 0 auto 1.5rem; font-size: 1.8rem; }
.review-thanks-card > p:not(.eyebrow) { max-width: 650px; margin: 1.5rem auto; color: var(--text-light); font-size: 1.1rem; }
.gallery-hero { padding: 7rem 0 4rem; background: var(--cream); text-align: center; }
.gallery-hero h1 { color: var(--primary-color); font-family: 'Playfair Display',serif; font-size: clamp(3rem,7vw,6rem); }
.gallery-hero p:last-child { max-width: 680px; margin: 1.5rem auto 0; color: var(--text-light); font-size: 1.1rem; }
.gallery-page { padding: 3rem 0 7rem; background: var(--cream); }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-bottom: 2.5rem; }
.gallery-filters button { padding: .65rem 1.15rem; border: 1px solid #cfc8b8; border-radius: 999px; background: transparent; color: var(--primary-color); text-transform: capitalize; }
.gallery-filters button.active,.gallery-filters button:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.full-gallery { columns: 4 260px; column-gap: 1rem; }
.full-gallery__item { position: relative; display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; background: #ddd; break-inside: avoid; overflow: hidden; text-align: left; cursor: zoom-in; }
.full-gallery__item[hidden] { display: none; }
.full-gallery__item img { display: block; width: 100%; height: auto; transition: transform .45s ease; }
.full-gallery__item span { position: absolute; inset: auto 0 0; padding: 2.5rem 1rem 1rem; color: white; background: linear-gradient(transparent,rgba(10,28,21,.78)); opacity: 0; transition: opacity .25s; }
.full-gallery__item:hover img,.full-gallery__item:focus-visible img { transform: scale(1.035); }
.full-gallery__item:hover span,.full-gallery__item:focus-visible span { opacity: 1; }
.gallery-lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 4rem 6rem; background: rgba(8,18,14,.96); }
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox figure { max-width: min(1200px,88vw); margin: 0; text-align: center; color: white; }
.gallery-lightbox figure img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.gallery-lightbox figcaption { margin-top: 1rem; }
.gallery-lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: white; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; }
.gallery-lightbox__close { top: 1.25rem; right: 1.25rem; }
.gallery-lightbox__prev { left: 1.25rem; top: 50%; }
.gallery-lightbox__next { right: 1.25rem; top: 50%; }

@media (max-width: 991px) {
    .rural-nav .navbar-collapse { padding: 1rem 0 1.5rem; }
    .rural-hero__facts { width: 100%; }
    .photo-story { grid-template-columns: 1fr 1fr; min-height: 580px; }
    .home-info-card { grid-template-columns: 1fr; }
    .home-info-card__image { min-height: 260px; }
    .photo-story__main { height: 520px; }
    .photo-story__side { height: 350px; }
    .photo-story__card { width: 55%; }
    .amenity-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 767px) {
    .rural-section { padding: 75px 0; }
    .rural-hero { min-height: 780px; }
    .rural-hero__content { padding-bottom: 13rem; }
    .rural-hero__facts { grid-template-columns: repeat(2,1fr); gap: .8rem 0; padding: 1rem; }
    .photo-story { display: block; min-height: auto; }
    .home-info-grid { grid-template-columns: 1fr; }
    .home-info-card { min-height: auto; }
    .photo-story__main { height: 430px; }
    .photo-story__side { display: none; }
    .photo-story__card { position: relative; right: auto; width: 92%; margin: -55px auto 0; padding: 2rem; }
    .section-heading { display: block; }
    .amenity-grid { grid-template-columns: 1fr; }
    .amenity-grid article { min-height: 190px; border-left: 1px solid #cfc8b8; border-bottom: 1px solid #cfc8b8; }
    .editorial-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 350px 220px 240px; }
    .editorial-gallery img:first-child { grid-column: 1 / 3; grid-row: auto; }
    .editorial-gallery img:last-child { grid-column: 1 / 3; }
    .review-grid { grid-template-columns: 1fr; }
    .google-reviews__heading { align-items: start; flex-direction: column; }
    .google-review-grid { grid-template-columns: 1fr; }
    .info-detail-layout { grid-template-columns: 1fr; gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; }
    .guest-review-layout { grid-template-columns: 1fr; gap: 3rem; }
    .guest-review-card,.review-thanks-card { padding: 2rem; }
    .info-aside-card { position: static; }
    .other-info-grid { grid-template-columns: 1fr; }
    .gallery-hero { padding: 5rem 0 3rem; }
    .gallery-page { padding-bottom: 4rem; }
    .full-gallery { columns: 2 145px; }
    .gallery-lightbox { padding: 4rem 1rem; }
    .gallery-lightbox__prev { left: .5rem; }
    .gallery-lightbox__next { right: .5rem; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Flatpickr customization */
.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.flatpickr-day:hover {
    background: var(--secondary-color);
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Custom spacing */
.py-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Text utilities */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

/* Google Translate Widget Customization */
#google_translate_element {
    text-align: right;
}

.goog-te-gadget {
    font-family: 'Inter', sans-serif !important;
    font-size: 0 !important;
}

.goog-te-gadget-simple {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.goog-te-gadget-simple:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    color: #ffffff !important;
}

.goog-te-gadget-simple .goog-te-menu-value:before {
    content: "🌐 ";
    margin-right: 5px;
}

/* Hide Google Translate banner */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.admin-config-toggle::after {
    display: none;
}

/* Customize dropdown menu */
.goog-te-menu-frame {
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #google_translate_element {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .goog-te-gadget-simple {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
}

/* Card clicable amb efecte hover */
.card-clickable:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(44, 85, 48, 0.2) !important;
    border: 2px solid var(--primary-color) !important;
}

.card-clickable {
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.card-clickable:hover .card-title {
    color: var(--primary-color) !important;
}

/* Gallery responsive styles */
#galeriaModal .main-image-container img {
    max-width: 100% !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    width: auto !important;
    height: auto !important;
}

/* Ensure gallery modal content is responsive */
#galeriaModal .modal-content {
    max-height: 95vh !important;
}

#galeriaModal .main-image-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Mobile responsive adjustments for gallery */
@media (max-width: 768px) {
    #galeriaModal .modal-dialog {
        max-width: 95vw !important;
        margin: 1rem !important;
    }
    
    #galeriaModal .modal-content {
        height: 95vh !important;
        max-height: 95vh !important;
    }
    
    #galeriaModal .main-image-container {
        height: calc(95vh - 180px) !important;
    }
    
    #galeriaModal .main-image-container img {
        max-height: calc(95vh - 180px) !important;
    }
}
