/* Ribeira Flores — public site polish */

:root {
    --rf-brand: #045679;
    --rf-accent: #08b1e9;
    --rf-cream: #f7f5f1;
}

/* Shared page layout */
.rf-page-section {
    background: var(--rf-cream);
    padding-top: 5rem;
    padding-bottom: 5.5rem;
}

.rf-page-intro h5,
.section-title h5,
.about-title h5 {
    color: var(--rf-accent);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.rf-page-intro h2,
.section-title h2,
.about-title h2 {
    color: var(--rf-brand);
    margin-bottom: 1rem;
}

.rf-page-lead,
.section-title > p,
.rf-page-intro .rf-page-lead {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    color: #5a6b75;
    font-size: 1.05rem;
    line-height: 1.7;
}

.rf-panel {
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 18px 42px rgba(4, 86, 121, 0.12);
}

.rf-panel--center {
    padding: 3rem 2rem;
}

.rf-panel--compact {
    padding: 2rem 1.75rem;
}

.rf-media-grid__item {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(4, 86, 121, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rf-media-grid__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(4, 86, 121, 0.16);
}

.rf-media-grid__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.rf-accommodation-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rf-accommodation-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 42px rgba(4, 86, 121, 0.12);
}

.rf-accommodation-card__media {
    height: 100%;
    min-height: 280px;
}

.rf-accommodation-card__media .rf-gallery,
.rf-accommodation-card__media .rf-gallery__slide {
    height: 100%;
    min-height: 280px;
    border-radius: 0;
}

.rf-accommodation-card__media .rf-gallery__slide {
    object-fit: cover;
}

.rf-accommodation-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 2.5rem;
}

.rf-accommodation-card__body h3 {
    color: var(--rf-brand);
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    margin-bottom: 1rem;
}

.rf-accommodation-card__body p {
    color: #5a6b75;
    line-height: 1.75;
    margin-bottom: 0;
}

.rf-article-card {
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 18px 42px rgba(4, 86, 121, 0.12);
}

.rf-article-card__header h1 {
    color: var(--rf-brand);
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 0;
}

.rf-article-card__meta {
    color: #6b7c86;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.rf-article-card__cover {
    width: 100%;
    border-radius: 14px;
    margin: 2rem 0;
    display: block;
}

.rf-article-card__content {
    color: #4f5f68;
    line-height: 1.8;
}

.rf-article-card__footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8eef2;
}

.services-08-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(4, 86, 121, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services-08-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(4, 86, 121, 0.14);
}

.contact-area.rf-page-section {
    background: var(--rf-cream);
}

.contact-area .contact-info.rf-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-area .contact-info .single-cta {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 1.5rem;
    float: none;
    width: 100%;
}

.contact-area .contact-info .single-cta:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-area .contact-info .single-cta small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7c86;
    line-height: 1.5;
}

.contact-area .contact-bg02.rf-panel {
    background: #fff;
    padding: 2.5rem;
    text-align: left;
}

.about-area .s-about-img img,
.about-area .about-icon img {
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(4, 86, 121, 0.1);
}

.rf-booking-search__fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    justify-content: center;
}

.rf-booking-search__field {
    flex: 1 1 260px;
    max-width: 420px;
    margin: 0;
}

.rf-booking-search__actions {
    flex: 0 0 auto;
}

.rf-booking-search__submit {
    min-width: 220px;
    background-color: var(--rf-accent) !important;
}

.rf-booking-search--compact .rf-booking-search__fields {
    max-width: 720px;
    margin: 0 auto;
}

.rf-booking-search--compact .rf-booking-search__field {
    flex: 1 1 320px;
    max-width: none;
}

.rf-booking-page__search {
    margin-bottom: 2rem;
}

.rf-booking-engine__frame {
    width: 100%;
    min-height: 78vh;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(4, 86, 121, 0.12);
}

.rf-booking-engine__fallback {
    display: none;
    text-align: center;
}

.rf-booking-engine.is-fallback .rf-booking-engine__frame {
    min-height: 320px;
}

.rf-booking-engine.is-fallback .rf-booking-engine__fallback {
    display: block;
}

.rf-home-booking {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding: 2rem 0 2.5rem;
    background: var(--rf-cream);
    border-bottom: 1px solid rgba(4, 86, 121, 0.08);
}

.rf-home-booking .rf-booking-search--compact .rf-booking-search__fields {
    max-width: 760px;
}

.rf-home-booking__card {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.75rem 2rem;
}

.rf-booking-bar .rf-booking-search {
    padding: 0 1rem;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--rf-brand);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--rf-accent);
    outline-offset: 2px;
}

.rf-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rf-brand);
}

.rf-input {
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rf-input:focus {
    outline: none;
    border-color: var(--rf-accent) !important;
    box-shadow: 0 0 0 3px rgba(8, 177, 233, 0.2);
}

.rf-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.rf-alert ul {
    padding-left: 1rem;
}

.rf-alert--error {
    background: #fdecea;
    color: #9b2c2c;
    border: 1px solid #f5c6cb;
}

.rf-alert--success {
    background: #e8f8ef;
    color: #1f6b43;
    border: 1px solid #b7e4c7;
}

.locale-switcher {
    display: flex;
    gap: 0.35rem;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.locale-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.locale-switcher a:hover,
.locale-switcher a:focus {
    border-color: var(--rf-accent);
    transform: translateY(-1px);
}

.locale-switcher a.is-active {
    border-color: var(--rf-brand);
    box-shadow: 0 0 0 2px rgba(4, 86, 121, 0.15);
}

.locale-switcher img {
    display: block;
    border-radius: 50%;
}

.nav-book-mobile {
    margin-top: 0.5rem;
}

.nav-book-mobile .top-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
}

#map {
    width: 100%;
    min-height: 380px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(4, 86, 121, 0.12);
}

.mapboxgl-ctrl-group {
    border-radius: 10px !important;
    box-shadow: 0 8px 20px rgba(4, 86, 121, 0.12) !important;
}

.rf-gallery {
    position: relative;
}

.rf-gallery__slide {
    display: none;
    width: 100%;
    border-radius: 12px;
}

.rf-gallery__slide.is-active {
    display: block;
}

.rf-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(4, 86, 121, 0.85);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    z-index: 2;
}

.rf-gallery__nav:hover,
.rf-gallery__nav:focus {
    background: var(--rf-brand);
    outline: none;
    transform: translateY(-50%) scale(1.05);
}

.rf-gallery__nav--prev {
    left: 12px;
}

.rf-gallery__nav--next {
    right: 12px;
}

.rf-success-page {
    text-align: center;
    padding: 4rem 0 5rem;
}

.rf-success-page__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rf-accent), #06a0d4);
    color: #fff;
    font-size: 2.2rem;
    box-shadow: 0 16px 32px rgba(8, 177, 233, 0.25);
}

.rf-success-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.rf-success-page__actions .btn.ss-btn {
    min-width: 180px;
}

.blog-card {
    height: 100%;
}

.rf-blog-index,
.rf-page-section.blog-area {
    background: var(--rf-cream);
}

.rf-blog-index__intro,
.rf-page-intro {
    text-align: center;
}

.rf-blog-index__intro h5,
.rf-page-intro h5 {
    color: var(--rf-accent);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.rf-blog-index__intro h2,
.rf-page-intro h2 {
    color: var(--rf-brand);
    margin-bottom: 1rem;
}

.rf-blog-index__lead,
.rf-page-lead {
    max-width: 640px;
    margin: 0 auto;
    color: #5a6b75;
    font-size: 1.05rem;
    line-height: 1.7;
}

.rf-blog-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 42px rgba(4, 86, 121, 0.12);
}

.rf-blog-featured__media {
    display: block;
    min-height: 320px;
    overflow: hidden;
}

.rf-blog-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rf-blog-featured:hover .rf-blog-featured__media img {
    transform: scale(1.03);
}

.rf-blog-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
}

.rf-blog-featured__badge {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(8, 177, 233, 0.14);
    color: var(--rf-brand);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rf-blog-featured__meta {
    color: #6b7c86;
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
}

.rf-blog-featured__title {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.rf-blog-featured__title a {
    color: var(--rf-brand);
    text-decoration: none;
}

.rf-blog-featured__title a:hover {
    color: #033d57;
}

.rf-blog-featured__excerpt {
    color: #4f5f68;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.rf-blog-grid {
    --bs-gutter-x: 1.75rem;
}

.rf-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(4, 86, 121, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rf-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(4, 86, 121, 0.14);
}

.rf-blog-card .blog-thumb2 {
    overflow: hidden;
}

.rf-blog-card .blog-thumb2 img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rf-blog-card:hover .blog-thumb2 img {
    transform: scale(1.04);
}

.rf-blog-card .blog-content2 {
    display: flex;
    flex-direction: column;
    flex: 1;
    float: none;
    width: 100%;
    border: 0;
    padding: 2.4rem 1.6rem 1.6rem;
}

.rf-blog-card .blog-content2 h4 {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.rf-blog-card .blog-content2 h4 a {
    color: var(--rf-brand);
}

.rf-blog-card__meta {
    color: #6b7c86;
    margin-top: 0.15rem;
}

.rf-blog-card__excerpt {
    color: #5a6b75;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex: 1;
}

.rf-blog-card .blog-btn {
    margin-top: auto;
}

.rf-blog-empty {
    max-width: 520px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.rf-blog-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: rgba(8, 177, 233, 0.14);
    color: var(--rf-brand);
    font-size: 2rem;
}

.rf-blog-empty h3 {
    color: var(--rf-brand);
    margin-bottom: 0.75rem;
}

.rf-blog-empty p {
    color: #5a6b75;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.rf-blog-pagination .pagination {
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
}

.rf-blog-pagination .page-link {
    min-width: 44px;
    height: 44px;
    padding: 0 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    border: 1px solid #d7e3ea;
    color: var(--rf-brand);
    font-weight: 600;
    box-shadow: none;
    background: #fff;
}

.rf-blog-pagination .page-link:hover,
.rf-blog-pagination .page-link:focus {
    background: rgba(8, 177, 233, 0.12);
    border-color: rgba(8, 177, 233, 0.35);
    color: var(--rf-brand);
    box-shadow: none;
}

.rf-blog-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--rf-accent), #06a0d4);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px rgba(8, 177, 233, 0.22);
}

.rf-blog-pagination .page-item.disabled .page-link {
    color: #9aa8b0;
    background: #f4f7f9;
}

.blog-card .blog-thumb2 img {
    border-radius: 12px 12px 0 0;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.footer-social a,
.header-social a {
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.footer-social a:hover,
.header-social a:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.top-btn,
.btn.ss-btn {
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.top-btn:hover,
.btn.ss-btn:hover {
    transform: translateY(-1px);
}

.feature-content img,
.s-about-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.breadcrumb-area {
    position: relative;
    background-position: center;
    background-size: cover;
    background-color: #033d57 !important;
    /* .header-three .menu-area uses margin-bottom: -106px — keep title below the bar */
    padding-top: 7.5rem;
    padding-bottom: 3rem;
    min-height: 360px;
}

.breadcrumb-area::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 86, 121, 0.82) 0%,
        rgba(3, 61, 87, 0.72) 55%,
        rgba(4, 86, 121, 0.65) 100%
    );
    z-index: 0;
}

.breadcrumb-area .container {
    position: relative;
    z-index: 1;
}

.breadcrumb-title h1,
.breadcrumb-title h2,
.breadcrumb-title .breadcrumb-hero {
    color: #fff !important;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
    max-width: 920px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb li a {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.breadcrumb > .active {
    color: rgba(255, 255, 255, 0.88) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 767px) {
    #map {
        min-height: 280px;
    }

    .breadcrumb-title h1,
    .breadcrumb-title h2,
    .breadcrumb-title .breadcrumb-hero {
        font-size: 1.75rem;
        margin-top: 0;
        margin-bottom: 0.75rem;
    }

    .breadcrumb-area {
        min-height: 280px;
        padding-top: 6.5rem;
        padding-bottom: 2rem;
    }

    .rf-blog-featured {
        grid-template-columns: 1fr;
    }

    .rf-blog-featured__media {
        min-height: 220px;
    }

    .rf-blog-featured__body {
        padding: 1.75rem 1.25rem;
    }

    .rf-blog-index__intro,
    .rf-page-intro {
        margin-bottom: 2rem !important;
    }

    .rf-accommodation-card__body {
        padding: 1.75rem 1.25rem;
    }

    .rf-article-card {
        padding: 1.75rem 1.25rem;
    }

    .rf-panel {
        padding: 1.75rem 1.25rem;
    }

    .rf-home-booking__card {
        padding: 1.25rem 1rem;
    }

    .rf-booking-search__fields {
        flex-direction: column;
        align-items: stretch;
    }

    .rf-booking-search__submit {
        width: 100%;
        min-width: 0;
    }

    .rf-booking-engine__frame {
        min-height: 70vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
