/* ==========================================================================
   Aqua Dream & Resort - Map Chooser Modal & Location Pills Styles
   ========================================================================== */

.map-chooser-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.map-chooser-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.map-chooser-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 20, 28, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.map-chooser-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(16px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
    box-sizing: border-box;
}

.map-chooser-modal.is-open .map-chooser-dialog {
    transform: translateY(0) scale(1);
}

.map-chooser-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.map-chooser-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.map-chooser-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding-right: 28px;
}

.map-chooser-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-chooser-title {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
    color: #111827;
}

.map-chooser-place {
    margin: 0 0 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: #4b5563;
}

.map-chooser-address {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #6b7280;
}

.map-chooser-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.map-choice-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none !important;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.map-choice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.map-choice-btn.google-choice-btn:hover {
    border-color: #4285f4;
    background: #f0f6ff;
}

.map-choice-btn.apple-choice-btn:hover {
    border-color: #111827;
    background: #f3f4f6;
}

.map-choice-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.google-choice-btn .map-choice-icon {
    background: #e8f0fe;
    color: #1a73e8;
}

.apple-choice-btn .map-choice-icon {
    background: #111827;
    color: #ffffff;
}

.map-choice-text {
    flex: 1;
}

.map-choice-text strong {
    display: block;
    font-size: 15px;
    color: #111827;
    margin-bottom: 2px;
}

.map-choice-text span {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.map-choice-arrow {
    font-size: 18px;
    font-weight: bold;
    color: #9ca3af;
    transition: transform 0.2s;
}

.map-choice-btn:hover .map-choice-arrow {
    transform: translateX(3px);
    color: #111827;
}

.map-chooser-footer {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.map-copy-address-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.map-copy-address-btn:hover {
    color: #111827;
    background: #f3f4f6;
}

/* Footer Address Interactive Link & Pills */
.footer-address-link {
    display: inline-flex !important;
    align-items: flex-start;
    gap: 6px;
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-address-link:hover {
    opacity: 0.92;
    text-decoration: underline !important;
}

.footer-address-link .map-pin-icon {
    flex-shrink: 0;
    margin-top: 3px;
    color: #e57373;
}

.footer-map-action-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.footer-map-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    backdrop-filter: blur(2px);
}

.footer-map-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.footer-map-pill.google-map-pill:hover {
    background: #ffffff;
    color: #1a73e8 !important;
    border-color: #ffffff;
}

.footer-map-pill.google-map-pill:hover svg {
    fill: #1a73e8;
}

.footer-map-pill.apple-map-pill:hover {
    background: #ffffff;
    color: #111111 !important;
    border-color: #ffffff;
}

.footer-map-pill.apple-map-pill:hover svg {
    fill: #111111;
}

/* Contact Page Map Button Row */
.contact-map-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.contact-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.contact-map-btn.google-btn {
    background: #e8f0fe;
    color: #1a73e8;
    border: 1px solid #d2e3fc;
}

.contact-map-btn.google-btn:hover {
    background: #1a73e8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.28);
}

.contact-map-btn.apple-btn {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.contact-map-btn.apple-btn:hover {
    background: #111827;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.contact-item-row .contact-item-content h4 a.map-link-inline,
.contact-detail-row .contact-detail-text h4 a.map-link-inline {
    color: inherit;
    text-decoration: none;
}

.contact-item-row .contact-item-content h4 a.map-link-inline:hover,
.contact-detail-row .contact-detail-text h4 a.map-link-inline:hover {
    text-decoration: underline;
}

/* Light Background Support for Pills */
.directions-heading .footer-map-pill,
.info-heading .footer-map-pill {
    background: #ffffff;
    color: #1f2937 !important;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.directions-heading .footer-map-pill svg,
.info-heading .footer-map-pill svg {
    fill: #374151;
}

.directions-heading .footer-map-pill:hover,
.info-heading .footer-map-pill:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.directions-heading .footer-map-pill.google-map-pill:hover,
.info-heading .footer-map-pill.google-map-pill:hover {
    background: #e8f0fe;
    border-color: #4285f4;
    color: #1a73e8 !important;
}

.directions-heading .footer-map-pill.google-map-pill:hover svg,
.info-heading .footer-map-pill.google-map-pill:hover svg {
    fill: #1a73e8;
}

.directions-heading .footer-map-pill.apple-map-pill:hover,
.info-heading .footer-map-pill.apple-map-pill:hover {
    background: #111827;
    border-color: #111827;
    color: #ffffff !important;
}

.directions-heading .footer-map-pill.apple-map-pill:hover svg,
.info-heading .footer-map-pill.apple-map-pill:hover svg {
    fill: #ffffff;
}

a.map-link-inline {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a.map-link-inline:hover {
    color: #1a73e8;
    text-decoration: underline;
}
