/* FerryOS Embed - WordPress eklentisi varsayılan stiller */
.ferryos-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0d4f8a;
    color: #fff !important;
    border: 0;
    border-radius: 8px;
    font: 600 14px/1 -apple-system, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.ferryos-btn::before {
    content: '⚓';
    font-size: 15px;
}
.ferryos-btn:hover {
    background: #0a3f70;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
    color: #fff !important;
}

.ferryos-btn-modal {
    background: linear-gradient(180deg, #0d4f8a, #0a3f70);
    box-shadow: 0 2px 6px rgba(13, 79, 138, 0.3);
}
.ferryos-btn-modal:hover {
    box-shadow: 0 6px 14px rgba(13, 79, 138, 0.4);
}

.ferryos-iframe-wrap iframe {
    display: block;
}

/* ============================================================ */
/* Renkli trigger varyantları — modal + _blank */
/* Hepsi 'ferryos-cta-' prefix'i ile namespace'lenmiş */
/* ============================================================ */

/* MODAL: Pill Glow — cyan/teal */
.ferryos-cta-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #fff !important; border: 0;
    font: 700 14px/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: .02em; cursor: pointer;
    box-shadow: 0 6px 18px rgba(6,182,212,.4), inset 0 1px 0 rgba(255,255,255,.2);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none !important;
}
.ferryos-cta-pill::before { content: '⚓'; font-size: 14px; }
.ferryos-cta-pill:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6,182,212,.5), inset 0 1px 0 rgba(255,255,255,.25); }

/* MODAL: Slim Card — navy + altın aksent */
.ferryos-cta-card {
    display: flex; flex-direction: column; gap: 10px;
    width: 100%; max-width: 240px; padding: 18px;
    border-radius: 14px;
    background: linear-gradient(160deg, #0a3f70 0%, #0d4f8a 60%, #144a7e 100%);
    color: #fff !important; cursor: pointer; border: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    text-align: left;
    box-shadow: 0 8px 24px rgba(13,79,138,.35);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none !important;
}
.ferryos-cta-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(13,79,138,.45); }
.ferryos-cta-card-icon { font-size: 22px; color: #fbbf24; line-height: 1; }
.ferryos-cta-card-title { font-size: 14px; font-weight: 700; line-height: 1.3; margin: 0; color: #fff; }
.ferryos-cta-card-sub { font-size: 12px; color: rgba(255,255,255,.78); line-height: 1.4; margin: 0; }
.ferryos-cta-card-btn {
    display: inline-flex; align-items: center; gap: 6px;
    align-self: flex-start; padding: 7px 14px;
    background: #fbbf24; color: #0a3f70;
    border-radius: 8px; font-weight: 700; font-size: 12px;
    letter-spacing: .02em;
}
.ferryos-cta-card-btn::after { content: '→'; }

/* MODAL: Floating Action Button — coral + pulse */
.ferryos-cta-fab {
    position: fixed; bottom: 24px; right: 24px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border-radius: 999px;
    background: linear-gradient(135deg, #f97316 0%, #fb7185 100%);
    color: #fff !important; border: 0;
    font: 700 14px/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: .02em; cursor: pointer;
    box-shadow: 0 10px 30px rgba(249,115,22,.4);
    z-index: 9998;
    transition: transform .2s, box-shadow .2s;
    animation: ferryos-fab-pulse 3s infinite ease-in-out;
}
.ferryos-cta-fab::before { content: '⚓'; font-size: 16px; }
.ferryos-cta-fab:hover { transform: scale(1.05); box-shadow: 0 14px 36px rgba(249,115,22,.55); animation: none; }
@keyframes ferryos-fab-pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(249,115,22,.4); }
    50% { box-shadow: 0 10px 36px rgba(249,115,22,.65), 0 0 0 8px rgba(249,115,22,.08); }
}
@media (max-width: 640px) {
    .ferryos-cta-fab { bottom: 16px; right: 16px; padding: 11px 18px; font-size: 13px; }
}

/* MODAL: Banner Ribbon — emerald */
.ferryos-cta-ribbon {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 18px; border-radius: 10px;
    background: linear-gradient(90deg, #10b981 0%, #059669 60%, #047857 100%);
    color: #fff;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 14px rgba(5,150,105,.3);
    font-size: 13px; font-weight: 600;
}
.ferryos-cta-ribbon-icon { font-size: 18px; line-height: 1; }
.ferryos-cta-ribbon-text { flex: 1; min-width: 200px; line-height: 1.4; }
.ferryos-cta-ribbon-text small {
    display: block; font-size: 11px; font-weight: 500;
    color: rgba(255,255,255,.78);
    letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 1px;
}
.ferryos-cta-ribbon-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,.96); color: #047857;
    border-radius: 8px; font-weight: 700; font-size: 12px;
    cursor: pointer; border: 0;
    transition: transform .15s, background .15s;
}
.ferryos-cta-ribbon-btn::after { content: '→'; }
.ferryos-cta-ribbon-btn:hover { background: #fff; transform: translateY(-1px); }

/* _BLANK: Search Faux — indigo/violet */
.ferryos-cta-search {
    display: flex; align-items: center; gap: 8px;
    width: 100%; max-width: 520px; padding: 8px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    box-shadow: 0 10px 28px rgba(99,102,241,.32);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none !important;
}
.ferryos-cta-search-pill {
    display: flex; align-items: center; gap: 8px;
    flex: 1; min-width: 0; padding: 9px 14px;
    background: rgba(255,255,255,.96); border-radius: 9px;
    color: #1e1b4b; font-size: 13px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ferryos-cta-search-pill svg { flex-shrink: 0; color: #6366f1; }
.ferryos-cta-search-arrow { color: #fff; font-size: 18px; font-weight: 700; opacity: .85; flex-shrink: 0; }
.ferryos-cta-search-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px;
    background: #fff; color: #5b21b6;
    border-radius: 9px; font-weight: 800; font-size: 13px;
    letter-spacing: .02em; flex-shrink: 0;
    transition: transform .15s, box-shadow .15s;
}
.ferryos-cta-search:hover .ferryos-cta-search-btn { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.12); }
@media (max-width: 560px) {
    .ferryos-cta-search { flex-wrap: wrap; }
    .ferryos-cta-search-arrow { display: none; }
    .ferryos-cta-search-pill { min-width: calc(50% - 4px); }
    .ferryos-cta-search-btn { width: 100%; justify-content: center; margin-top: 4px; }
}

/* _BLANK: Hero Banner Mini — rose/sunset */
.ferryos-cta-hero {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    width: 100%; max-width: 560px; padding: 20px 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 40%, #f59e0b 100%);
    color: #fff !important;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 14px 32px rgba(244,63,94,.32);
    text-decoration: none !important;
    position: relative; overflow: hidden;
}
.ferryos-cta-hero::before {
    content: ''; position: absolute; right: -20px; top: -30px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,.22) 0%, transparent 65%);
    pointer-events: none;
}
.ferryos-cta-hero-text { flex: 1; min-width: 200px; position: relative; z-index: 1; }
.ferryos-cta-hero-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 4px; color: #fff; }
.ferryos-cta-hero-sub { font-size: 13px; color: rgba(255,255,255,.92); font-weight: 500; line-height: 1.45; margin: 0; }
.ferryos-cta-hero-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; background: #fff; color: #be123c;
    border-radius: 10px; font-weight: 800; font-size: 13px;
    letter-spacing: .02em; flex-shrink: 0;
    position: relative; z-index: 1;
    transition: transform .15s, box-shadow .15s;
}
.ferryos-cta-hero-btn::after { content: '→'; font-size: 15px; }
.ferryos-cta-hero:hover .ferryos-cta-hero-btn { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.14); }

/* _BLANK: Icon Tile Dark — slate-900 + lime */
.ferryos-cta-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    width: 100%; max-width: 220px; padding: 22px 20px;
    border-radius: 14px;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    color: #fff !important;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none !important;
    border: 1px solid rgba(132,204,22,.25);
    box-shadow: 0 10px 26px rgba(15,23,42,.4);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ferryos-cta-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15,23,42,.5); border-color: rgba(132,204,22,.6); }
.ferryos-cta-tile-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: linear-gradient(135deg, #84cc16, #22c55e);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(132,204,22,.4);
}
.ferryos-cta-tile-title { font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; margin: 0; color: #fff; }
.ferryos-cta-tile-sub { font-size: 12px; color: rgba(226,232,240,.72); line-height: 1.45; margin: 0; }
.ferryos-cta-tile-cta {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: #84cc16;
    letter-spacing: .04em; text-transform: uppercase;
    margin-top: auto;
}
.ferryos-cta-tile-cta::after { content: '→'; transition: transform .2s; }
.ferryos-cta-tile:hover .ferryos-cta-tile-cta::after { transform: translateX(3px); }

/* _BLANK: Arrow Link — royal blue minimal */
.ferryos-cta-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 2px;
    color: #1d4ed8 !important;
    font: 700 15px/1.3 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: .01em;
    text-decoration: none !important;
    position: relative;
    transition: color .2s;
}
.ferryos-cta-link::before {
    content: '';
    position: absolute; left: 2px; right: 2px; bottom: 2px;
    height: 2px;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
    border-radius: 2px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform .25s ease;
}
.ferryos-cta-link:hover { color: #1e40af !important; }
.ferryos-cta-link:hover::before { transform: scaleX(1); }
.ferryos-cta-link-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(29,78,216,.1);
    color: #1d4ed8; font-size: 13px; font-weight: 800;
    transition: background .2s, transform .2s;
}
.ferryos-cta-link:hover .ferryos-cta-link-icon { background: #1d4ed8; color: #fff; transform: translateX(2px); }

/* ============================================================ */
/* v1.4.0 — Native HTML arama formu (search_bar & search_widget) */
/* Iframe kullanmadan WP temasıyla uyumlu render eder.           */
/* WP tema select/button/border-radius eğilimlerine karşı        */
/* açık ve tutarlı reset — box-sizing/appearance/height          */
/* ============================================================ */

/* Ortak form base — WP tema override koruması için tam reset */
.ferryos-search-bar,
.ferryos-search-widget {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
    color: #0f172a;
    line-height: 1.4;
}
.ferryos-search-bar *,
.ferryos-search-widget *,
.ferryos-search-bar *::before,
.ferryos-search-widget *::before,
.ferryos-search-bar *::after,
.ferryos-search-widget *::after {
    box-sizing: border-box;
}

/* Widget başlığı — gradient anchor icon + koyu title */
.ferryos-search-widget .ferryos-form-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 800 16px/1.2 inherit;
    color: #0f172a;
    margin: 0 0 14px;
    letter-spacing: -.015em;
}
.ferryos-search-widget .ferryos-form-title > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d4f8a, #0a3f70);
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(13, 79, 138, .22);
}

/* Field wrapper */
.ferryos-search-bar .ferryos-form-field,
.ferryos-search-widget .ferryos-form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    margin: 0;
}

/* Label — uppercase, tight tracking */
.ferryos-search-bar .ferryos-form-label,
.ferryos-search-widget .ferryos-form-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1;
    margin: 0;
}

/* Inputs — appearance:none for consistent cross-browser look */
.ferryos-search-bar select,
.ferryos-search-bar input[type="date"],
.ferryos-search-widget select,
.ferryos-search-widget input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 11px 34px 11px 13px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font: 600 14px/1.2 inherit;
    color: #0f172a;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
    height: auto;
    min-height: 0;
    margin: 0;
    letter-spacing: -.005em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 11px;
}
.ferryos-search-bar input[type="date"],
.ferryos-search-widget input[type="date"] {
    background-image: none;
    padding-right: 13px;
}
.ferryos-search-bar select:hover,
.ferryos-search-bar input[type="date"]:hover,
.ferryos-search-widget select:hover,
.ferryos-search-widget input[type="date"]:hover {
    border-color: #cbd5e1;
}
.ferryos-search-bar select:focus,
.ferryos-search-bar input[type="date"]:focus,
.ferryos-search-widget select:focus,
.ferryos-search-widget input[type="date"]:focus {
    outline: 0;
    border-color: #0d4f8a;
    box-shadow: 0 0 0 3px rgba(13, 79, 138, .14);
}
.ferryos-search-bar select:disabled,
.ferryos-search-widget select:disabled {
    background-color: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #eef2f7;
}

/* Submit button — koyu navy gradient, inset highlight */
.ferryos-search-bar .ferryos-form-submit,
.ferryos-search-widget .ferryos-form-submit {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    height: 46px;
    background: linear-gradient(180deg, #0d4f8a 0%, #0a3f70 100%);
    color: #fff;
    border: 0;
    border-radius: 9px;
    font: 700 14px/1 inherit;
    letter-spacing: .005em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(13, 79, 138, .28), inset 0 1px 0 rgba(255, 255, 255, .15);
    transition: transform .12s ease, box-shadow .18s ease, filter .12s ease;
    white-space: nowrap;
    text-shadow: none;
    text-transform: none;
    text-decoration: none;
}
.ferryos-search-bar .ferryos-form-submit:hover,
.ferryos-search-widget .ferryos-form-submit:hover {
    box-shadow: 0 6px 18px rgba(13, 79, 138, .38), inset 0 1px 0 rgba(255, 255, 255, .18);
    filter: brightness(1.05);
}
.ferryos-search-bar .ferryos-form-submit:active,
.ferryos-search-widget .ferryos-form-submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(13, 79, 138, .28), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.ferryos-search-widget .ferryos-form-submit {
    width: 100%;
    margin-top: 6px;
    padding: 0 20px;
}

/* --------- Route type toggle (One-way / Round-trip pill switch) --------- */
.ferryos-search-bar .ferryos-form-rt,
.ferryos-search-widget .ferryos-form-rt {
    display: inline-flex;
    gap: 0;
    padding: 3px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
}
.ferryos-search-bar .ferryos-form-rt label,
.ferryos-search-widget .ferryos-form-rt label {
    cursor: pointer;
    line-height: 1;
    margin: 0;
    position: relative;
}
.ferryos-search-bar .ferryos-form-rt input[type="radio"],
.ferryos-search-widget .ferryos-form-rt input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}
.ferryos-search-bar .ferryos-form-rt span,
.ferryos-search-widget .ferryos-form-rt span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    color: #64748b;
    transition: background .15s, color .15s;
}
.ferryos-search-bar .ferryos-form-rt input[type="radio"]:checked + span,
.ferryos-search-widget .ferryos-form-rt input[type="radio"]:checked + span {
    background: #fff;
    color: #0d4f8a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

/* --------- TASARIM A: Yatay Booking-bar --------- */
.ferryos-search-bar {
    width: 100%;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
}
.ferryos-search-bar .ferryos-form-row {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr .95fr .95fr .8fr auto;
    gap: 10px;
    align-items: end;
}
/* Tek yön: dönüş tarihi alanını gizle + grid 5-kolona düş */
.ferryos-search-bar .ferryos-form-row.ferryos-noret {
    grid-template-columns: 1.4fr 1.4fr 1fr .9fr auto;
}
.ferryos-search-bar .ferryos-form-row.ferryos-noret .ferryos-form-field-retdate {
    display: none;
}
.ferryos-search-bar .ferryos-form-submit {
    height: 44px;
    padding: 0 24px;
}

/* Mobil breakpoint — yatay bar dikey stack olur */
@media (max-width: 768px) {
    .ferryos-search-bar .ferryos-form-row,
    .ferryos-search-bar .ferryos-form-row.ferryos-noret {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .ferryos-search-bar .ferryos-form-field-date,
    .ferryos-search-bar .ferryos-form-field-retdate,
    .ferryos-search-bar .ferryos-form-field-pax {
        grid-column: 1 / -1;
    }
    .ferryos-search-bar .ferryos-form-submit {
        grid-column: 1 / -1;
        width: 100%;
    }
}
@media (max-width: 420px) {
    .ferryos-search-bar .ferryos-form-row,
    .ferryos-search-bar .ferryos-form-row.ferryos-noret {
        grid-template-columns: 1fr;
    }
}

/* --------- Widget'ta tek yön dönüş tarihini gizle --------- */
.ferryos-search-widget .ferryos-form-row.ferryos-noret .ferryos-form-field-retdate {
    display: none;
}

/* --------- TASARIM B: Dikey Sidebar Widget --------- */
.ferryos-search-widget {
    width: 100%;
    max-width: 320px;
    padding: 22px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .08);
}
.ferryos-search-widget .ferryos-form-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 800 15px/1.3 inherit;
    color: #0a3f70;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    letter-spacing: -.01em;
}
.ferryos-search-widget .ferryos-form-title span {
    font-size: 18px;
    color: #fbbf24;
}
.ferryos-search-widget .ferryos-form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ferryos-search-widget .ferryos-form-submit {
    margin-top: 4px;
    width: 100%;
    padding: 13px 22px;
    font-size: 14px;
}

/* WP tema bazı button/select reset koruması (yaygın çakışmaları nasıl kırar) */
.ferryos-search-bar select,
.ferryos-search-widget select {
    text-shadow: none;
    text-transform: none;
    line-height: 1.2;
}
.ferryos-search-bar .ferryos-form-submit,
.ferryos-search-widget .ferryos-form-submit {
    text-shadow: none;
    text-transform: none;
}

