/* Home page styles ported from the Framer design (batamfastferry.framer.website) */
:root {
    --framer-accent: #fe571e;
    --framer-surface: #f6f6f6;
    --framer-radius: 20px;
}

body.is-home { background: var(--framer-surface); }
body.is-home .framer-section,
body.is-home .home-news-section,
body.is-home .bg-light { background: var(--framer-surface) !important; }
body.is-home .framer-section.bg-white { background: var(--framer-surface) !important; }
#promo { scroll-margin-top: 96px; }

/* Hero: ship photo with elliptical bottom edge, copy on one line, white search card overlapping */
.framer-hero { position: relative; padding: 118px 0 0; isolation: isolate; }
.framer-hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 600px; z-index: -1; background: #0a2a5c url('/image/framer/hero-bg.jpg') center -140px / 100% auto no-repeat; border-radius: 0 0 50% 50% / 0 0 230px 230px; }
.framer-hero-text { max-width: 1240px; color: #fff; padding-bottom: 66px; font-family: 'Inter', sans-serif; }
.hero-greeting { font-size: 24px; font-weight: 400; line-height: 34px; margin: 0; color: #fff; }
.hero-explore { margin-left: 6px; }
.hero-rotator { position: relative; display: inline-block; height: 34px; overflow: hidden; vertical-align: top; white-space: nowrap; transition: width .3s ease; }
.hero-rotator-item { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(100%); filter: blur(3px); transition: transform .35s ease, opacity .35s ease, filter .35s ease; }
.hero-rotator-item.is-active { opacity: 1; transform: none; filter: none; }
.hero-rotator-item.is-leaving { opacity: 0; transform: translateY(-100%); filter: blur(3px); }
@media (prefers-reduced-motion: reduce) { .hero-rotator-item { transition: none; } }
.framer-hero-text h1 { font-weight: 700; font-size: 40px; line-height: 44px; margin: 4px 0 0; color: #fff; }
.framer-hero .box-search { width: 100%; max-width: 1240px; margin-top: 0; box-shadow: none; border-radius: 32px !important; }
.framer-hero .box-search > .bg-white { border-radius: 32px !important; padding: 48px !important; }
.framer-hero .box-search, .framer-hero .box-search * { font-family: 'Inter', sans-serif !important; }

/* segmented One Way / Roundtrip */
.framer-hero .box-search .navbar-nav { display: inline-flex; gap: 0 !important; padding: 4px; background: #f1f1f1; border-radius: 16px; }
.framer-hero .box-search .booking-tab { min-width: 180px; text-align: center; border: 0; border-radius: 12px; padding: 12px 24px !important; color: #333; background: transparent; font-weight: 600; }
.framer-hero .box-search .booking-tab.active { background: #fff; color: var(--framer-accent); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* fields: white, thin border, no icon block */
.framer-hero .box-search .form-label { font-size: 16px; font-weight: 600; margin-bottom: 8px !important; }
.framer-hero .box-search .form-control, .framer-hero .box-search .form-select { height: 48px; min-height: 48px; border-radius: 10px; background-color: #fff; border: 1px solid #e3e3e3; font-size: 15px; box-shadow: none; }
.framer-route-row { display: flex; align-items: center; gap: 10px; }
.framer-route-row .form-select { flex: 1 1 0; min-width: 0; }
.route-arrow { color: var(--framer-accent); display: grid; place-items: center; }
.pax-dropdown .form-select { width: 100%; }
.pax-menu { min-width: 340px; border-radius: 16px; border: 0; box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.framer-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 28px; }
.framer-hero .box-search .btn-primary { height: 48px; padding: 0 28px; border-radius: 1000px; background: var(--framer-accent); border-color: var(--framer-accent); display: inline-flex; align-items: center; }

/* Navbar: logo left, menu centred, currency pill + avatar right; white once scrolled */
#navbar-change-bg > .container { max-width: none; padding-left: 80px; padding-right: 80px; }
#navbar-change-bg { min-height: 68px; }
.site-header { font-family: 'Inter', sans-serif; }
.site-header.is-scrolled, body:not(.is-home) .site-header { background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.08); }
.nav-primary { flex: 1; gap: 4px; }
.nav-primary > .nav-item:first-child { margin-left: auto; }
.nav-primary .nav-link { font-size: 16px; font-weight: 500; padding: 12px 14px; border-radius: 8px; color: #fff !important; }
.nav-primary .nav-link:hover { background: rgba(255,255,255,.14); color: #fff !important; }
.site-header.is-scrolled .nav-primary .nav-link, body:not(.is-home) .nav-primary .nav-link { color: #1f2d2a !important; }
.site-header.is-scrolled .nav-primary .nav-link:hover, body:not(.is-home) .nav-primary .nav-link:hover { background: var(--framer-surface); color: var(--framer-accent) !important; }
.nav-primary .dropdown-menu { border: 0; border-radius: 16px; padding: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.nav-primary .dropdown-item { border-radius: 8px; padding: 8px 14px; }
.nav-primary .dropdown-item:hover { background: var(--framer-surface); color: var(--framer-accent); }
.nav-currency { margin-left: auto; border-left: 0; padding-left: 0; }
.nav-primary .currency-button { background: #fff !important; color: var(--framer-accent) !important; border-radius: 1000px; padding: 12px 20px !important; font-weight: 600; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.nav-primary .currency-button:hover { background: #fff !important; color: #d94615 !important; }
.account-button, .account-initials { width: 48px; height: 48px; padding: 0; border: 0 !important; border-radius: 50%; background: var(--framer-accent) !important; color: #fff !important; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(254,87,30,.28); }
.account-button:hover, .account-initials:hover { background: #d94615 !important; }
.site-header.is-scrolled .navbar-toggler-icon, body:not(.is-home) .navbar-toggler-icon { filter: invert(1); }

.framer-title { font-family: 'Inter', sans-serif; font-size: 32px; font-weight: 700; color: #000; margin: 0; }
.framer-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }

.framer-pill { border-radius: 1000px; padding: .6rem 1.6rem; background: var(--framer-accent); border-color: var(--framer-accent); }
.framer-pill-light { border-radius: 1000px; padding: .45rem 1.3rem; font-weight: 600; background: #fff; color: #000; border: 0; }
.framer-pill-light:hover { background: #eee; color: #000; }

.framer-offers-section { background: var(--framer-accent); }
.framer-scroller { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.framer-scroller > * { flex: 0 0 auto; scroll-snap-align: start; }

.framer-offer-card { width: 280px; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--framer-radius); background: #fff; color: #000; text-decoration: none; }
.framer-offer-time { font-size: 13px; color: #687773; }
.framer-offer-route { font-size: 17px; }
.framer-offer-price { color: var(--framer-accent); font-weight: 700; font-size: 20px; }
.framer-offer-price del { color: #9aa5a2; font-weight: 400; font-size: 14px; margin-right: 6px; }
.framer-offer-period { color: #687773; }

.framer-promo-card { width: 300px; padding: 20px; border-radius: var(--framer-radius); background: #fff; display: flex; flex-direction: column; gap: 8px; }
.framer-promo-card h3 { font-size: 18px; font-weight: 700; margin: 0; }
.framer-promo-card p { margin: 0; color: #687773; font-size: 14px; }
.framer-promo-card small { color: #9aa5a2; }
.framer-promo-code { align-self: flex-start; border: 1.5px dashed var(--framer-accent); background: #fff4f0; color: var(--framer-accent); font-weight: 700; border-radius: 10px; padding: .35rem .9rem; }

.framer-app-section { background: var(--framer-surface); }
.framer-app-card { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 32px; padding: 56px 56px 0; border-radius: 32px; background: var(--framer-accent); color: #fff; overflow: hidden; min-height: 420px; }
.framer-app-copy { align-self: center; padding-bottom: 56px; }
.framer-app-card h2 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 36px; line-height: 1.15; }
.framer-app-card p { color: rgba(255,255,255,.9); }
.framer-app-card ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.framer-app-card li { padding: .3rem .9rem; border-radius: 1000px; background: rgba(255,255,255,.2); font-size: 14px; }
.framer-store-badges { height: 52px; width: auto; }
.framer-app-hand { width: 100%; max-width: 380px; justify-self: center; align-self: end; display: block; }

/* Footer: brand + app/social on the left, four link columns on the right (Framer layout) */
.site-footer { background: #fff; color: #1a1a1a; margin-top: 0; border-top: 1px solid #ececec; }
.footer-grid { display: grid; grid-template-columns: minmax(280px, 1.6fr) repeat(4, minmax(120px, 1fr)); gap: 40px; padding: 56px 24px 40px; max-width: none; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-logo { width: 123px; height: auto; margin-bottom: 14px; }
.footer-grid h4 { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: #000; }
.footer-brand h4 { margin: 10px 0 4px; }
.footer-badges { width: 178px; height: auto; display: block; }
.site-footer .footer-social { display: flex; gap: 20px; }
.site-footer .footer-social a { width: 18px; height: 18px; border: 0; background: none; border-radius: 0; display: block; }
.site-footer .footer-social img { width: 18px; height: 18px; display: block; filter: none; }
.footer-column { display: flex; flex-direction: column; gap: 12px; }
.footer-column a { color: #1a1a1a; font-size: 16px; text-decoration: none; }
.footer-column a:hover { color: var(--framer-accent); }
.footer-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px; font-size: 14px; color: #5f6b68; border-top: 1px solid #f0f0f0; max-width: none; }
@media (max-width: 991.98px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 36px; } .footer-copy { flex-direction: column; } }

@media (max-width: 767.98px) {
    .framer-title, .framer-app-card h2 { font-size: 24px; }
    .framer-hero { padding-top: 96px; }
    .hero-greeting { font-size: 18px; line-height: 26px; }
    .hero-rotator { height: 26px; }
    .framer-hero-text h1 { font-size: 28px; line-height: 34px; }
    .framer-hero-text { padding-bottom: 32px; }
    .framer-hero::before { height: 520px; border-radius: 0 0 50% 50% / 0 0 80px 80px; background-size: auto 100%; background-position: 70% 0; }
    .framer-hero .box-search { width: calc(100% - 24px); }
    .framer-hero .box-search > .bg-white { padding: 20px !important; }
    .framer-route-row { flex-direction: column; align-items: stretch; }
    .route-arrow { transform: rotate(90deg); }
    body.is-home .home-booking-form .framer-route-group { flex: 0 0 100%; max-width: 100%; }
    .framer-hero .box-search .booking-tab { min-width: 0; padding: 10px 18px !important; }
    .framer-actions { justify-content: stretch; flex-wrap: wrap; }
    .framer-actions .btn { flex: 1; justify-content: center; }
    .framer-app-card { grid-template-columns: 1fr; padding: 28px 24px 0; }
    .framer-app-copy { padding-bottom: 0; }
    #navbar-change-bg > .container { padding-left: 16px; padding-right: 16px; }
    .footer-simple { flex-direction: column; align-items: flex-start; }
    .framer-offer-card, .framer-promo-card { width: 240px; }
}

/* Promo page */
.promo-page { padding-top: 68px; background: var(--framer-surface); font-family: 'Inter', sans-serif; }
.promo-hero { background: #fff; padding: 56px 0 40px; border-bottom: 1px solid #ececec; }
.promo-hero h1 { font-size: 40px; font-weight: 700; margin: 8px 0 12px; }
.promo-hero p { max-width: 720px; color: #5f6b68; font-size: 18px; margin: 0; }
.promo-breadcrumb { display: flex; gap: 8px; font-size: 14px; color: #8a8f8d; }
.promo-breadcrumb a { color: var(--framer-accent); text-decoration: none; }
.promo-banner { width: 100%; height: auto; border-radius: var(--framer-radius); display: block; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.promo-grid .framer-offer-card, .promo-grid .framer-promo-card { width: auto; }
@media (max-width: 767.98px) { .promo-hero h1 { font-size: 28px; } .promo-hero p { font-size: 16px; } }

/* Content pages: news, destination guide, promo */
.content-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--framer-accent); margin: 16px 0 0 !important; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.content-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--framer-radius); overflow: hidden; }
.content-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.content-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.content-card:hover .content-card-image img { transform: scale(1.04); }
.content-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.content-card-body h2, .content-card-body h3 { font-size: 18px; font-weight: 700; margin: 0; }
.content-card-body h2 a, .content-card-body h3 a { color: #1a1a1a; text-decoration: none; }
.content-card-body p { color: #5f6b68; font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.content-badge { align-self: flex-start; padding: 3px 12px; border-radius: 1000px; background: #fff0eb; color: var(--framer-accent); font-size: 12px; font-weight: 600; }
.content-more { margin-top: auto; color: var(--framer-accent); font-weight: 600; text-decoration: none; font-size: 14px; }
.content-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.content-filters a { padding: 8px 18px; border-radius: 1000px; background: #fff; color: #333; text-decoration: none; font-size: 14px; font-weight: 500; }
.content-filters a.is-active { background: var(--framer-accent); color: #fff; }
.content-pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.content-pager a { padding: 10px 22px; border-radius: 1000px; background: #fff; color: #1a1a1a; text-decoration: none; font-weight: 600; }
.content-detail { max-width: 860px; padding-top: 32px; padding-bottom: 48px; }
.content-detail h1 { font-size: 36px; font-weight: 700; margin: 12px 0; line-height: 1.2; }
.content-detail time, .content-validity { color: #8a8f8d; font-size: 14px; }
.content-hero-image { width: 100%; border-radius: var(--framer-radius); margin: 24px 0; display: block; }
.content-body { font-size: 17px; line-height: 1.75; color: #2b3532; }
.content-body img { max-width: 100%; height: auto; border-radius: 12px; }
.content-body a { color: var(--framer-accent); }
@media (max-width: 767.98px) { .content-detail h1 { font-size: 26px; } }
.framer-offer-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 4px; }

/* Promo code cards and detail */
.promo-code-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.promo-code-meta span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #8a8f8d; }
.promo-code-meta strong { font-size: 18px; color: var(--framer-accent); }
.promo-code-link { align-self: flex-start; margin-top: 8px; }
.framer-promo-code { cursor: pointer; letter-spacing: .08em; }
.promo-code-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; margin: 24px 0; background: #fff; border-radius: var(--framer-radius); }
.promo-code-box span { color: #5f6b68; }
.promo-code-box .framer-promo-code { font-size: 22px; padding: .5rem 1.4rem; }
.content-facts { display: grid; gap: 1px; margin: 0 0 28px; background: #e8e8e8; border-radius: var(--framer-radius); overflow: hidden; }
.content-facts > div { display: flex; gap: 20px; padding: 14px 20px; background: #fff; }
.content-facts dt { flex: 0 0 190px; font-weight: 600; color: #5f6b68; }
.content-facts dd { margin: 0; }
@media (max-width: 575.98px) { .content-facts > div { flex-direction: column; gap: 2px; } .content-facts dt { flex-basis: auto; } }

/* Route map page */
.route-map-page { padding-top: 68px; background: #fff; font-family: 'Inter', sans-serif; }
.route-map-wrap { position: relative; max-width: 1558px; margin: 0 auto; }
.route-map { width: 100%; height: clamp(420px, 68vh, 660px); background: #cfe9f6; }
.route-map-fallback img { width: 100%; height: auto; display: block; }
.route-pin { background: none; border: 0; }
.route-pin svg { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.leaflet-tooltip.route-map-tooltip { padding: 10px 18px; background: #fff; border: 0; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.18); font: 600 16px 'Inter', sans-serif; color: #1a1a1a; }
.leaflet-tooltip-top.route-map-tooltip::before { border-top-color: #fff; }
.route-popup .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.route-popup .leaflet-popup-content { margin: 0; width: 280px !important; font-family: 'Inter', sans-serif; }
.route-card-photo { margin: 0; position: relative; }
.route-card-credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 12px 6px; font-size: 10.5px; line-height: 1.3; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.route-card-img { display: block; width: 100%; height: 150px; object-fit: cover; background: #e8eef2; }
.route-card-body { padding: 16px 18px 18px; }
.route-card-body h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: #1a1a1a; }
.route-card-address { margin: 0 0 10px; font-size: 14px; line-height: 1.45; color: #5f6b68; }
.route-card-routes { margin: 0 0 14px; font-size: 13px; color: #1a1a1a; }
.route-card-link { display: inline-block; padding: 8px 18px; border-radius: 1000px; background: var(--framer-accent); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.route-card-link:hover { background: #d94615; }
.route-popup .leaflet-popup-close-button { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); font-size: 22px; padding: 8px 10px 0 0; }
.route-list-address { margin: 0 0 6px; font-size: 13px; color: #5f6b68; }
.route-map .leaflet-control-attribution { font-size: 11px; }
.route-list { padding-top: 48px; padding-bottom: 56px; }
.route-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.route-list-card { padding: 20px; background: var(--framer-surface); border-radius: var(--framer-radius); }
.route-list-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.route-list-card h3 small { font-size: 12px; font-weight: 500; color: #8a8f8d; margin-left: 6px; }
.route-list-card p { margin: 0; color: #5f6b68; font-size: 14px; }
.route-list-cta { margin-top: 28px; }
