/* Shared styles for public-facing pages (search + attraction detail) */
/* WhereIsMyFair Magical Theme - Fairground/Theme Park Design */

body.public-shell .site-main {
    background: transparent;
    box-shadow: none;
    padding: 0;
    min-height: 0;
}

.search-shell,
.detail-shell {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 2.5rem 0 3rem;
}

.search-shell__inner,
.detail-shell__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.search-shell h1,
.detail-shell h1 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    letter-spacing: 0.02em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.search-shell .lead,
.detail-shell .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.search-interface,
.content-card,
.info-card,
.rating-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.search-interface {
    margin-bottom: 2rem;
}

.nav-tabs {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #E63946;
    background-color: #fff8f0;
}

.nav-tabs .nav-link.active {
    color: #E63946;
    border-bottom-color: #FFD700;
    background-color: transparent;
}

.search-form {
    padding: 1rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #E63946 0%, #c62836 100%);
    border-color: #E63946;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFD700 0%, #e6c200 100%);
    border-color: #FFD700;
    color: #1a1a2e;
}

.form-range {
    height: 8px;
}

.radius-value {
    font-weight: 600;
    color: #E63946;
    white-space: nowrap;
}

.results-list {
    margin-top: 2rem;
}

.results-list h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.results-count {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.search-header {
    margin-bottom: 2.5rem;
}

.search-header h1 {
    font-size: 2.8rem;
    margin: 0;
    font-weight: 600;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.map-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .attractions-grid {
        grid-template-columns: 1fr;
    }
}

.attraction-card .card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.attraction-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.rating-badge,
.rating-display .rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700 0%, #e6c200 100%);
    color: #1a1a2e;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-text.description {
    color: #666;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-text.distance {
    color: #E63946;
    font-weight: 600;
    margin-bottom: 1rem;
}

.locations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.location-btn {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.location-btn:hover {
    border-color: #FFD700;
    background-color: #fffdf0;
}

.location-btn.active {
    border-color: #FFD700;
    background-color: #E63946;
    color: white;
}

.location-btn-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.location-btn-count {
    font-size: 0.85rem;
    opacity: 0.7;
}

.alert-info {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    color: #004085;
    border-radius: 8px;
}

.map-container {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-view {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    background: #f0f0f0;
}

.attraction-detail-container {
    background: transparent;
}

.attraction-header-top {
    padding: 1rem 0 1rem 0;
}

.image-section {
    margin-bottom: 1.5rem;
}

.image-section .main-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rating-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rating-badge small {
    font-size: 0.7rem;
    opacity: 0.9;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meta-badge {
    background: #f5f5f5;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.content-section {
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 2rem;
}

.content-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-section p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.detail-box {
    background: #f9f9f9;
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
}

.detail-box i {
    font-size: 1.5rem;
    color: #E63946;
    margin-bottom: 0.5rem;
    display: block;
}

.detail-box strong {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-box p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 160px;
}

.detail-shell__inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.detail-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.detail-hero__back {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    transition: all 0.3s ease;
}

.detail-hero__back:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.detail-hero__text {
    flex: 1;
    min-width: 220px;
}

.detail-hero__text h1 {
    margin: 0;
    font-size: 2.5rem;
}

.detail-hero__meta,
.detail-hero__location {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.detail-hero__rating {
    min-width: 130px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    text-align: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    min-height: 360px;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.detail-card--glass {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.detail-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.detail-stat {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    padding: 1.1rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.detail-stat__label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.35rem;
}

.detail-stat strong {
    font-size: 1.05rem;
    color: #333;
    display: block;
}

.detail-stat__status {
    color: #E63946;
    font-weight: 600;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-actions .btn {
    flex: 1;
    min-width: 180px;
}

.detail-shell__empty-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    max-width: 640px;
    margin: 0 auto;
}

.detail-shell--empty .detail-shell__inner {
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-card {
    padding: 1.5rem;
}

.info-card-header {
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.info-card-header h5 {
    color: #333;
    margin: 0;
    font-weight: 600;
}

.info-card-header i {
    color: #FFD700;
    margin-right: 0.5rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f5f5f5;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}

.info-item .value {
    color: #333;
    font-weight: 500;
}

.rating-display {
    text-align: center;
}

.rating-large {
    font-size: 3rem;
    font-weight: 700;
    color: #E63946;
    line-height: 1;
}

.rating-card .info-card-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
}

/* Schedule Card Styles */
.schedule-status {
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.schedule-status.status-open {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.schedule-status.status-closed {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 4px;
    background: #f8f9fa;
}

.schedule-row.schedule-today {
    background: rgba(102, 126, 234, 0.1);
    font-weight: 600;
}

.schedule-row .day-name {
    font-weight: 500;
    color: #495057;
}

.schedule-row .hours {
    color: #28a745;
}

.schedule-row .hours.closed {
    color: #6c757d;
}

.schedule-timezone {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
    color: #6c757d;
}

.schedule-timezone i {
    margin-right: 0.25rem;
}

/* Like Button Styles */
.like-btn {
    transition: all 0.2s ease;
}

.like-btn.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.like-btn.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.like-btn .fa-heart {
    transition: transform 0.2s ease;
}

.like-btn.like-animation .fa-heart {
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.leaflet-container,
#map {
    border-radius: 8px;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-card.sticky-top {
        position: static !important;
    }

    .rating-large {
        font-size: 2rem;
    }
}

@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .detail-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-hero__rating {
        align-self: stretch;
        text-align: left;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .content-card {
        padding: 1.5rem 1rem;
    }

    .detail-box {
        padding: 1rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.75rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .map-view {
        height: 400px;
    }
}

/* Card Like Button Styles */
.card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-like-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.6rem;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: #666;
}

.card-like-btn:hover {
    border-color: #E63946;
    color: #E63946;
}

.card-like-btn.liked {
    border-color: #E63946;
    color: #E63946;
    background: rgba(230, 57, 70, 0.1);
}

.card-like-btn.liked .fa-heart {
    color: #E63946;
}

.card-like-btn .like-count {
    font-weight: 500;
}

/* Detail page action buttons */
.detail-actions .btn-outline-danger {
    border-color: #E63946;
    color: #E63946;
}

.detail-actions .btn-outline-danger:hover {
    background: #E63946;
    border-color: #E63946;
    color: white;
}

.detail-actions .btn-danger {
    background: #E63946;
    border-color: #E63946;
}

.detail-actions .btn-primary {
    background: linear-gradient(135deg, #E63946 0%, #c62836 100%);
    border-color: #E63946;
}

.detail-actions .btn-primary:hover {
    background: linear-gradient(135deg, #FFD700 0%, #e6c200 100%);
    border-color: #FFD700;
    color: #1a1a2e;
}

.detail-actions .btn-outline-primary {
    border-color: #FFD700;
    color: #FFD700;
}

.detail-actions .btn-outline-primary:hover {
    background: #FFD700;
    border-color: #FFD700;
    color: #1a1a2e;
}

/* Hero section styling */
.detail-hero {
    position: relative;
    margin-bottom: 2rem;
}

.detail-hero__back {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
}

.detail-hero__back:hover {
    color: #FFD700 !important;
}

.detail-hero__location {
    color: #FFD700;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-hero__rating {
    background: linear-gradient(135deg, #FFD700 0%, #e6c200 100%);
    color: #1a1a2e;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Hero badge */
.hero-badge {
    background: linear-gradient(135deg, #FFD700 0%, #e6c200 100%);
    color: #1a1a2e;
}

/* Like animation */
@keyframes like-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.like-animation {
    animation: like-pulse 0.3s ease;
}

/* Subscribe card styling */
.subscribe-card .btn-primary {
    background: linear-gradient(135deg, #E63946 0%, #c62836 100%);
    border: none;
}

.subscribe-card .btn-primary:hover {
    background: linear-gradient(135deg, #FFD700 0%, #e6c200 100%);
    color: #1a1a2e;
}
