/* Best Places Directory - Single Place Template Mobile Styles */
.bpd-main-container {
    max-width: 95vw;
    margin: 0 auto;
}

.bpd-description-card,
.bpd-social-card,
.bpd-map-card {
    margin: 2em 0;
    padding: 1.5em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0001;
}

.bpd-reviews-card h2,
.bpd-description-card h2,
.bpd-social-card h2,
.bpd-map-card h2 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
}

.bpd-breadcrumb {
    margin: 1.5em 0 1.5em 0;
    font-size: 0.98em;
}

.bpd-hero-info-card {
    max-width: 100%;
    background: #fff;
    box-shadow: 0 2px 12px #0002;
    border-radius: 14px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Image Styles */
.bpd-hero-img-col,
.bpd-hero-img-col > div {
    flex: 1 1 100%;
    min-width: 20%;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.bpd-hero-img {
    min-width: 100%;
    border-radius: 16px;
    aspect-ratio: 4/5;
    object-fit: cover;
}

/* Info Section */
.bpd-hero-info-col {
    flex: 1 1 90%;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    position: relative;
}
.bpd-hero-titlebar {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
}
.bpd-place-title {
    margin: 0;
    font-size: 2.1em;
    font-weight: 700;
    line-height: 1.1;
}
.bpd-rank-badge {
    background: #f7b500;
    color: #fff;
    font-size: 1.1em;
    font-weight: 700;
    padding: 0.35em 1.1em;
    border-radius: 2em;
    box-shadow: 0 1px 4px #0002;
    letter-spacing: 0.5px;
    display: inline-block;
    vertical-align: middle;
}

/* Phone, Email, Website */
.bpd-contact-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6em;
    font-size: 1.08em;
}
.bpd-contact-icon {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-right: 0.6em;
    font-size: 1.15em;
}
.bpd-contact-icon i { font-size: 1.05em; }
.bpd-icon-phone { color: #00897b; }
.bpd-icon-email { color: #00897b; }
.bpd-icon-website { color: #00897b; }

/* Tags not yet exist */
.bpd-tags-row {
    margin: 0.2em 0 0.2em 0;
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}
.bpd-tags-row span {
    background: #ffe5b4;
    color: #a86c1d;
    padding: 0.2em 0.8em;
    border-radius: 1em;
    font-size: 0.98em;
}

.bpd-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    font-size: 1.08em;
}
.bpd-taxonomies {
    display: flex;
    flex-wrap: wrap;
    font-size: 1.05em;
}
/* In hero section, stack taxonomies vertically in DOM order so Category appears below Location */
.bpd-hero-info-col .bpd-taxonomies {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3em;
}
.bpd-share-buttons {
    margin: 0.7em 0 0 0;
    display: flex;
    gap: 0.7em;
    flex-wrap: wrap;
    align-items: center;
}
.bpd-share-label { font-weight: 700; }
.bpd-share-buttons a { text-decoration: none; }
.bpd-share-buttons i { font-size: 1.25rem; line-height: 1; vertical-align: middle; }
.bpd-price-row {
    width: 100%;
    display: flex;
    gap: 1.2em;
    align-items: center;
    margin-top: 1.5em;
}
.bpd-price-row span {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.22em 0.9em;
    border-radius: 1em;
    font-size: 1.05em;
    font-weight: 500;
}
.bpd-price-row span:last-child {
    background: #fff3e0;
    color: #f57c00;
}
.bpd-book-btn-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0.7em;
}
.bpd-book-btn {
    display: inline-block;
    background: #00897b;
    color: #fff;
    padding: 1.1em 3.5em;
    border-radius: 0.7em;
    font-size: 1.18em;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 12px #0002;
    letter-spacing: 0.5px;
    min-width: 220px;
    text-align: center;
}
.bpd-book-btn .bpd-diagonal-arrow { vertical-align: middle; }

/* Social Media Cards */
/* Strict 9:16 aspect ratio for all social media cards - only one definition, no overrides */
.bpd-social-embed {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 1em;
  box-shadow: 0 2px 12px #0001;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}
.bpd-facebook-embed { border-top: 3px solid #1877f2; }
.bpd-instagram-embed { border-top: 3px solid #e1306c; }
.bpd-tiktok-embed { border-top: 3px solid #000; }
.bpd-youtube-shorts-embed { border-top: 3px solid #ff0000; }
.bpd-tiktok-fallback {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.95);
  font-size: 0.95em;
  border-radius: 0 0 10px 10px;
}

.bpd-social-embed iframe,
.bpd-social-embed blockquote,
.bpd-social-embed .bpd-fallback-content {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border: none !important;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  overflow: hidden;
  aspect-ratio: 9/16 !important;
}

.bpd-social-embed .bpd-tiktok-fallback {
  text-align: center;
  font-size: 1em;
  color: #222;
  background: #f5f5f5;
  width: 100%;
  height: 100%;
}

/* Tag label for place tags */
.bpd-tag-label {
    background: #ffe5b4;
    color: #a86c1d;
    padding: 0.2em 0.8em;
    border-radius: 1em;
    font-size: 0.98em;
}

/* Meta icons and labels */
.bpd-icon {
    margin-right: 0.2em;
    font-size: 1.1em;
    vertical-align: middle;
}
.bpd-icon i { font-size: 1em; }
.bpd-meta-label {
    color: #666; /* improved contrast */
    font-size: 0.95em;
}
.bpd-user-score-value {
    color: #2ecc40;
    font-weight: 700;
}
.bpd-thumbs-up {
    font-size: 1.2em;
    vertical-align: middle;
}

/* Taxonomy labels */
.bpd-tax-label {
    color: #666; /* improved contrast */
    font-weight: 500;
    margin-right: 0.3em;
}

.bpd-price-rating-label {
    background: #fff3e0;
    color: #f57c00;
    padding: 0.22em 0.9em;
    border-radius: 1em;
    font-size: 1.05em;
    font-weight: 500;
}

/* Add space below the h2 in the description card */
/* --- Reviews Card --- */
.bpd-reviews-card { /* specialized variant differing from base cards above */
    margin: 2em 0;
    padding: 1.5em 1.5em 1em 1.5em;
    background: #f9f9fb;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0001;
    border: 1px solid #e0e0e0;
}

.bpd-review-item {
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 1px 4px #0001;
    padding: 1em 1.2em;
    margin-bottom: 1.1em;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    border-left: 4px solid #00897b;
}
.bpd-review-item strong {
    color: #00897b;
    font-weight: 600;
    font-size: 1.08em;
}
.bpd-review-item span {
    color: #222;
    font-size: 1.04em;
}

/* --- Review Form Card --- */
.bpd-review-form-card {
    margin: 2em 0;
    padding: 1.5em 1.5em 1em 1.5em;
    background: #f9f9fb;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0001;
    border: 1px solid #e0e0e0;
}
.bpd-review-form-card h2 {
    margin-top: 0;
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
}
.bpd-review-form-card form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 1em;
}
.bpd-review-form-card label {
    font-weight: 500;
    color: #444;
    margin-bottom: 0.2em;
}

/* Upvote/Downvote radio group styling */
.bpd-vote-row {
    display: flex;
    gap: 1.2em;
    margin-bottom: 0.5em;
    align-items: center;
}
.bpd-vote-btn {
    display: flex;
    align-items: center;
    gap: 0.4em;
    background: #f5f5f5;
    border: 2px solid #ccc;
    border-radius: 2em;
    padding: 0.5em 1.3em;
    font-size: 1.08em;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: border 0.2s, background 0.2s, color 0.2s;
    user-select: none;
    outline: none;
}
.bpd-vote-btn input[type="radio"] {
    display: none;
}
.bpd-vote-btn .bpd-vote-icon {
    font-size: 1.25em;
    vertical-align: middle;
}
.bpd-vote-btn.selected,
.bpd-vote-btn input[type="radio"]:checked + .bpd-vote-icon {
    border-color: #00897b;
    background: #e0f7fa;
    color: #00897b;
}
.bpd-vote-btn.upvote {
    border-color: #43a047;
}
.bpd-vote-btn.downvote {
    border-color: #e53935;
}
.bpd-vote-btn.upvote.selected,
.bpd-vote-btn.upvote input[type="radio"]:checked + .bpd-vote-icon {
    background: #e8f5e9;
    color: #43a047;
    border-color: #43a047;
}
.bpd-vote-btn.downvote.selected,
.bpd-vote-btn.downvote input[type="radio"]:checked + .bpd-vote-icon {
    background: #ffebee;
    color: #e53935;
    border-color: #e53935;
}
.bpd-review-form-card textarea,
.bpd-review-form-card input[type="text"],
.bpd-review-form-card input[type="email"] {
    width: 100%;
    padding: 0.7em 1em;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1.05em;
    background: #fff;
    margin-top: 0.2em;
    resize: vertical;
}
.bpd-review-form-card input[type="radio"] {
    margin-right: 0.4em;
}
.bpd-review-form-card button[type="submit"] {
    background: #00897b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.9em 2.5em;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 4px #0001;
    transition: background 0.2s;
    margin-top: 0.5em;
    align-self: flex-start;
}
.bpd-review-form-card button[type="submit"]:hover {
    background: #00695c;
}
.bpd-review-form-card button[type="submit"]:focus-visible,
.bpd-book-btn:focus-visible,
.bpd-vote-btn:focus-visible {
    outline: 3px solid #00897b;
    outline-offset: 2px;
}
.bpd-review-message {
    background: #e0f7fa;
    color: #006064;
    border-radius: 6px;
    padding: 0.7em 1em;
    margin-bottom: 1em;
    font-size: 1.05em;
    border: 1px solid #b2ebf2;
}

/* Responsive Map Embed */
.bpd-map-embed {
        position: relative;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16/9; /* default widescreen ratio */
        background: #f1f1f1;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 6px #0001;
}
.bpd-map-actions { margin:0 0 1em 0; display:flex; gap:0.8em; flex-wrap:wrap; align-items:center; }
.bpd-add-to-map-btn { background:#1976d2; color:#fff; border:none; border-radius:6px; padding:0.65em 1.2em; font-size:0.95em; font-weight:600; cursor:pointer; box-shadow:0 1px 4px #0002; line-height:1; }
.bpd-add-to-map-btn:hover { background:#125a9e; }
.bpd-add-to-map-btn.bpd-added { background:#2e7d32; cursor:default; }
.bpd-add-to-map-status { font-size:0.9em; color:#1976d2; display:none; }
.bpd-map-embed iframe {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        border: 0;
}

/* --- Horizontal Scroll Social Embeds (single row) --- */
.bpd-social-embeds {
        display: flex;
        flex-wrap: nowrap;              /* keep in one row */
        gap: 1.2em;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.4em 0.2em 0.6em 0.2em;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
}
.bpd-social-embeds::-webkit-scrollbar { height: 8px; }
.bpd-social-embeds::-webkit-scrollbar-track { background: transparent; }
.bpd-social-embeds::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.bpd-social-embeds { scrollbar-width: thin; }

.bpd-social-embed {
        flex: 0 0 70%;          /* large preview on very small screens */
        max-width: 70%;
        scroll-snap-align: start;
}
@media (min-width: 480px) {
    .bpd-social-embed { flex: 0 0 55%; max-width: 55%; }
}
@media (min-width: 600px) {
    .bpd-hero-info-card {
        flex-wrap: nowrap;
    }
    .bpd-hero-img-col,
    .bpd-hero-img-col > div {
        flex: 0 0 100%;
        max-width: 350px;
        margin-bottom: 0;
        display: flex;
    }
    .bpd-hero-img {
        width: 100%;
        height: 100%;
        aspect-ratio: 9/16;
        border-radius: 16px;
        object-fit: cover;
    }
    .bpd-hero-info-col {
        flex: 1 1 auto;
        margin: 1.2rem 1.5rem;
    }
    .bpd-social-embed { flex: 0 0 40%; max-width: 40%; }
}
@media (min-width: 750px) {
    .bpd-social-embed { flex: 0 0 30%; max-width: 30%; }
}
@media (min-width: 900px) {
    .bpd-main-container {
        max-width: 900px;
    }
    .bpd-social-embed { 
        flex: 0 0 220px; 
        width: 220px; 
    }
    .bpd-hero-img {
        border-radius: 15px 0 0 15px;
    }
    .bpd-social-embed { flex: 0 0 220px; max-width: 220px; }
    .bpd-map-embed { aspect-ratio: 21/9; }
}
@media (min-width: 1200px) {
    .bpd-social-embed { flex: 0 0 240px; max-width: 240px; }
}



