/**
 * Destinito - Destination Guide Theme CSS
 * Brand overrides on top of theme-destinito.css (loaded as base by _LayoutDestinito for the destination-landing layout)
 */

/* ============================================
   DESTINITO BRAND OVERRIDES
   ============================================ */

/* Override brand title styling for "DESTINITO - DESTINATION GUIDE" */
@media (min-width: 769px) {
    .iig-brand-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   DESTINATION PICKER PILL (in landing headline)
   ============================================ */

.destinito-dest-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 4px;
    padding: 4px 14px 4px 16px;
    border: 2px solid #FF7F0E;
    border-radius: 999px;
    background: #ffffff;
    color: #FF7F0E;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.78em;
    line-height: 1.2;
    cursor: pointer;
    vertical-align: baseline;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    text-decoration: none;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}
.destinito-dest-pill:hover,
.destinito-dest-pill:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 127, 14, 0.34);
    background: #FF7F0E;
    color: #ffffff;
    outline: none;
}
.destinito-dest-pill-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.destinito-dest-pill-chevron {
    font-size: 0.85em;
    line-height: 1;
    display: inline-block;
    transition: transform .15s ease;
}
.destinito-dest-pill:hover .destinito-dest-pill-chevron { transform: translateY(1px); }

/* ============================================
   DESTINATION PICKER MODAL
   ============================================ */

.destinito-dest-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
}
.destinito-dest-modal.active {
    display: flex;
    animation: destinitoDestModalFadeIn 0.18s ease;
}
@keyframes destinitoDestModalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.destinito-dest-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 35, 71, 0.7);
    backdrop-filter: blur(2px);
}
.destinito-dest-modal-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}
.destinito-dest-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 51, 102, 0.08);
    color: #003366;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    transition: background .15s ease;
}
.destinito-dest-modal-close:hover,
.destinito-dest-modal-close:focus-visible {
    background: rgba(0, 51, 102, 0.16);
    outline: none;
}
.destinito-dest-modal-header {
    padding: 28px 28px 18px;
}
.destinito-dest-modal-header h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #003366;
    letter-spacing: -0.01em;
}
.destinito-dest-modal-header p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: #5C6B7A;
}
.destinito-dest-modal-search {
    position: relative;
    padding: 0 28px 14px;
}
.destinito-dest-modal-search-icon {
    position: absolute;
    top: 13px;
    left: 44px;
    color: #5C6B7A;
    font-size: 14px;
    pointer-events: none;
}
.destinito-dest-modal-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px 12px 40px;
    border: 2px solid #E4E8EE;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #2A2A2A;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.destinito-dest-modal-input:focus {
    outline: none;
    border-color: #FF7F0E;
    box-shadow: 0 0 0 4px rgba(255, 127, 14, 0.12);
}
.destinito-dest-modal-list {
    list-style: none;
    margin: 0;
    padding: 0 14px 18px;
    overflow-y: auto;
    flex: 1 1 auto;
}
.destinito-dest-modal-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s ease;
}
.destinito-dest-modal-row:hover,
.destinito-dest-modal-row:focus-visible {
    background: #F4F6F9;
    outline: none;
}
.destinito-dest-modal-flag {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}
.destinito-dest-modal-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.destinito-dest-modal-name {
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.destinito-dest-modal-tagline {
    font-size: 13px;
    color: #5C6B7A;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.destinito-dest-modal-row-arrow {
    color: #FF7F0E;
    font-size: 14px;
    flex-shrink: 0;
}
.destinito-dest-modal-empty {
    padding: 16px 14px;
    text-align: center;
    color: #5C6B7A;
    font-size: 14px;
}

/* Mobile: modal fills screen ≤480px so the typeahead is comfortable. */
@media (max-width: 480px) {
    .destinito-dest-modal { padding: 0; }
    .destinito-dest-modal-card {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .destinito-dest-modal-header { padding: 60px 22px 14px; }
    .destinito-dest-modal-search { padding: 0 22px 14px; }
    .destinito-dest-modal-search-icon { left: 38px; }
    .destinito-dest-modal-list { padding: 0 10px 22px; }
    .destinito-dest-pill {
        padding: 3px 10px 3px 12px;
        font-size: 0.74em;
    }
}

/* ============================================
   TRIP WALLET CTA — anchor variant
   The page-inline rule in _HomeDestinito.cshtml styles `.dl-trip-cta button`;
   mirror it for the `<a>` variant added after the modal rewire (the section's
   CTAs are now direct routes, not buttons).
   ============================================ */

.dl-trip-cta a {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    color: #FF7F0E;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.dl-trip-cta a:hover { text-decoration: underline; }

/* ============================================
   PWA INSTALL BUTTON (footer)
   ============================================ */

.stay-footer-install {
    text-align: center;
    margin: 28px 0 18px;
    padding: 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: 999px;
    background: #FF7F0E;
    color: #003366;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pwa-install-btn:hover,
.pwa-install-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 127, 14, 0.4);
    background: #ff8b21;
    outline: none;
}
.pwa-install-btn i { font-size: 18px; }
.pwa-install-sub {
    margin: 10px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 600px) {
    .pwa-install-btn { width: 100%; max-width: 360px; }
}

/* ============================================
   PWA INSTALL INSTRUCTIONS MODAL
   (mirrors Destinito.LocationHelper modal pattern)
   ============================================ */

.pwa-instructions-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 35, 71, 0.7);
    backdrop-filter: blur(2px);
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    animation: pwaInstructionsFadeIn 0.18s ease;
}
.pwa-instructions-overlay[hidden] { display: none; }
@keyframes pwaInstructionsFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.pwa-instructions-modal {
    position: relative;
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 460px;
    padding: 30px 28px 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    color: #2A2A2A;
}
.pwa-instructions-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 51, 102, 0.08);
    color: #003366;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}
.pwa-instructions-close:hover,
.pwa-instructions-close:focus-visible {
    background: rgba(0, 51, 102, 0.16);
    outline: none;
}
.pwa-instructions-icon {
    width: 56px;
    height: 56px;
    margin: 4px auto 16px;
    border-radius: 14px;
    background: rgba(255, 127, 14, 0.14);
    color: #FF7F0E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.pwa-instructions-modal h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: #003366;
    text-align: center;
}
.pwa-instructions-sub {
    margin: 0 0 18px;
    font-size: 14.5px;
    color: #5C6B7A;
    text-align: center;
    line-height: 1.5;
}
.pwa-instructions-steps {
    margin: 0 0 22px;
    padding-left: 22px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #2A2A2A;
}
.pwa-instructions-steps li { margin-bottom: 8px; }
.pwa-instructions-steps li:last-child { margin-bottom: 0; }
.pwa-instructions-actions {
    text-align: center;
}
.pwa-instructions-ok {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: 999px;
    background: #003366;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pwa-instructions-ok:hover,
.pwa-instructions-ok:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
    background: #00498f;
    outline: none;
}

@media (max-width: 480px) {
    .pwa-instructions-overlay { padding: 0; }
    .pwa-instructions-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 60px 22px 30px;
    }
}
