/* Place Detail Page Styles */

/* Menu bar styles are now in style.css to avoid duplication */

/* Override main style.css for detail page */
body.place-detail-page,
html.place-detail-page {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #f5f5f5;
    color: #333;
    overflow-x: hidden;
    overflow-y: auto !important;
    min-height: 100vh;
    height: auto !important;
}

/* Ensure body doesn't have overflow hidden from main CSS */
body {
    overflow: visible !important;
    height: auto !important;
}

.error-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.error-container h2 {
    color: #dc3545;
    margin-bottom: 1rem;
}

/* Banner Section */
.detail-banner {
    position: relative;
    width: 100%;
    height: 550px;
    background: #e0e0e0 center/cover no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20, 20, 60, 0.3), rgba(30, 30, 80, 0.7));
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

/* Rating and buttons in bottom-right */
.banner-right-section {
    position: absolute;
    bottom: 4rem;
    right: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
    z-index: 3;
}

.banner-rating {
    text-align: right;
}

.rating-value-large {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

/* Action buttons horizontal in bottom-right */
.banner-actions {
    display: flex;
    flex-direction: row;
    gap: 0.85rem;
    z-index: 3;
}

.btn-banner-action {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    color: white;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.btn-banner-action:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-banner-action:active {
    transform: translateY(0);
}

.btn-banner-action .btn-icon {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Main content in bottom-left */
.banner-main-content {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 65%;
}

.profile-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    background: white;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    background: #1976d2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2rem;
}

.banner-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.banner-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.banner-tagline {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    line-height: 1.4;
    font-weight: 400;
}

.banner-categories {
    font-size: 0.95rem;
    color: white;
    opacity: 0.9;
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: 1rem;
}

/* Contact info inline below categories */
.banner-contact-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 0.75rem;
}

.banner-contact-inline .contact-phone,
.banner-contact-inline .contact-address {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: white;
    font-weight: 400;
}

.banner-contact-inline .contact-icon {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Contact info in bottom center (old - kept for compatibility) */
.banner-contact {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.contact-phone,
.contact-address {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    color: white;
    font-weight: 400;
}

.contact-icon {
    font-size: 1.3rem;
    opacity: 0.95;
}

.phone-masked {
    margin-right: 0.5rem;
}

.btn-show-phone, .btn-show-phone-small {
    background: #ff6600;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.5rem;
    transition: all 0.3s;
}

.btn-show-phone:hover, .btn-show-phone-small:hover {
    background: #e55a00;
}

.btn-show-phone-small {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
}

/* Accessibility icon in very bottom-right corner */
.accessibility-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 4;
    width: 55px;
    height: 55px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accessibility-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(220, 53, 69, 0.5));
}

.accessibility-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* Responsive banner styles */
@media (max-width: 768px) {
    .detail-banner {
        height: 400px;
    }
    
    .banner-content {
        padding: 1rem;
    }
    
    .banner-right-section {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .rating-value-large {
        font-size: 2.5rem;
    }
    
    .banner-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    
    .btn-banner-action {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        flex: 1 1 auto;
        min-width: fit-content;
    }
    
    .btn-banner-action .btn-icon {
        font-size: 0.9rem;
    }
    
    .banner-main-content {
        max-width: 100%;
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0;
    }
    
    .profile-avatar-large {
        width: 60px;
        height: 60px;
    }
    
    .avatar-fallback {
        font-size: 1.5rem;
    }
    
    .banner-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .banner-tagline {
        font-size: 0.85rem;
    }
    
    .banner-categories {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    .banner-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .contact-item {
        font-size: 0.85rem;
    }
    
    .accessibility-icon {
        bottom: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }
}

/* Main Content Wrapper */
.detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 400px);
}

.detail-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: visible;
    min-height: auto;
}

.detail-body {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    min-height: auto;
}

.detail-main {
    flex: 2;
    min-width: 0;
}

.detail-sidebar {
    flex: 1;
    min-width: 0;
}

.detail-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    overflow: visible;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    font-size: 1.3rem;
    color: #1976d2;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.detail-section p {
    line-height: 1.6;
    color: #555;
}

.bullet-list {
    list-style: none;
    padding-left: 0;
}

.bullet-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.bullet-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1976d2;
    font-weight: bold;
}

.what-we-looking-for {
    line-height: 1.6;
    color: #555;
}

.what-we-looking-for p {
    margin-bottom: 0.5rem;
}

/* Maps Header */
.maps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.maps-header h3 {
    margin: 0;
    flex-shrink: 0;
}

/* Map Tabs */
.map-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    margin-left: auto;
}

.map-tab {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.map-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.map-tab.active .map-icon svg path,
.map-tab.active .map-icon svg circle {
    fill: white;
    stroke: white;
}

.map-tab:hover {
    background: #e0e0e0;
}

.map-tab.active {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

.map-container-wrapper {
    position: relative;
}

.detail-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #e0e0e0;
    min-height: 400px;
}

#street-view {
    width: 100%;
    height: 400px;
    min-height: 400px;
}

#street-view .map-controls-overlay {
    display: none;
}

.map-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background-color: #e0e0e0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.map-error-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #666;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.map-error-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.map-error-message {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    max-width: 500px;
    padding: 0 1rem;
}

/* Map controls overlay (zoom buttons) */
.map-controls-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.map-zoom-control {
    width: 30px;
    height: 30px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    user-select: none;
}

.map-zoom-control:hover {
    background: #f5f5f5;
}

.map-zoom-control:active {
    background: #e0e0e0;
}

.directions-panel {
    padding: 2rem;
    text-align: center;
}

.btn-directions {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-directions:hover {
    background: #1565c0;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem 1.5rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.amenity-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
}

.amenity-link:hover {
    background-color: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.amenity-item:hover {
    opacity: 0.8;
}

.amenity-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #dc3545;
    flex-shrink: 0;
}

.amenity-item input[type="checkbox"]:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.amenity-item span {
    color: #333;
}

/* Photo Gallery */
.photo-gallery {
    margin-top: 1rem;
}

.photo-main {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    display: block;
    background: #f5f5f5;
}

#photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
    font-size: 1.1rem;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}

.photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 1;
}

.photo-nav:hover {
    background: rgba(0,0,0,0.7);
}

.photo-prev {
    left: 1rem;
}

.photo-next {
    right: 1rem;
}

.photo-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    min-height: 100px;
}

.photo-thumbnails img {
    width: 120px !important;
    height: 80px !important;
    min-width: 120px;
    min-height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: block !important;
    background: #f0f0f0;
}

/* Override for grid layout thumbnails */
.photo-thumbnails.grid-layout img,
#photo-thumbnails-container img.thumbnail-img {
    width: 100% !important;
    height: 120px !important;
    min-width: unset;
    min-height: unset;
}

.photo-thumbnails img:hover {
    border-color: #1976d2;
    transform: scale(1.05);
}

.photo-thumbnails img.active {
    border-color: #1976d2;
    border-width: 3px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Reviews */
.reviews-list {
    margin-top: 1rem;
}

.review-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.review-content {
    flex: 1;
    min-width: 0;
}

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

.review-author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.review-author-info strong {
    font-size: 1rem;
    color: #333;
}

.review-date {
    color: #777;
    font-size: 0.9rem;
}

.review-rating-top {
    color: #dc3545;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.review-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.review-btn {
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 4px;
}

.review-btn:hover {
    background: #f5f5f5;
}

.review-btn:active {
    transform: scale(0.95);
}

.review-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.review-like {
    color: #ff9800;
}

.review-like:hover {
    color: #f57c00;
}

.review-like.active {
    color: #f57c00;
    font-weight: 600;
}

.review-dislike {
    color: #ff9800;
}

.review-dislike:hover {
    color: #f57c00;
}

.review-dislike.active {
    color: #f57c00;
    font-weight: 600;
}

.review-heart {
    color: #e91e63;
}

.review-heart:hover {
    color: #c2185b;
}

.review-heart.active {
    color: #c2185b;
    font-weight: 600;
}

.review-link {
    color: #42a5f5;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.review-link:hover {
    text-decoration: underline;
    background: #f5f5f5;
}

/* Review Form */
.review-form {
    margin-top: 1.5rem;
    background: #fff;
    padding: 0;
}

.rating-sliders {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0;
}

.rating-item:last-child {
    margin-bottom: 0;
}

.rating-label-left {
    min-width: 90px;
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
    margin: 0;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.star {
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover {
    transform: scale(1.2);
}

.rating-label-right {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

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

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-group-half {
    flex: 1;
    margin-bottom: 0;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

.form-input:hover,
.form-textarea:hover {
    border-color: #ccc;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    line-height: 1.6;
    margin: 0;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #1976d2;
    border-radius: 3px;
}

.image-upload {
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    background: #fff;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.image-upload:hover {
    border-color: #b0b0b0;
}

.image-upload.drag-over {
    border-color: #999;
    background: #f9f9f9;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.upload-text {
    color: #555;
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
}

.upload-or {
    color: #999;
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0;
}

.upload-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.upload-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}

.btn-upload {
    padding: 0.5rem 1rem;
    background: #fff;
    color: #555;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: inherit;
}

.btn-upload:hover {
    background: #f5f5f5;
    border-color: #b0b0b0;
    color: #333;
}

.btn-submit-review {
    width: 100%;
    padding: 1.125rem 2rem;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 1.5rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.btn-submit-review:hover {
    background: #f57c00;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    transform: translateY(-2px);
}

.btn-submit-review:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

/* Sidebar Styles */
.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    overflow: visible;
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    color: #1976d2;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-section h3.section-title-with-icon {
    justify-content: flex-start;
    gap: 0.5rem;
}

.sidebar-section h3.section-title-with-icon .link-directions {
    margin-left: auto;
}

.link-directions {
    font-size: 0.85rem;
    color: #1976d2;
    text-decoration: none;
}

.link-directions:hover {
    text-decoration: underline;
}

.sidebar-map {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 1rem;
    background-color: #e0e0e0;
    min-height: 200px;
    position: relative;
}

.sidebar-map .map-error {
    height: 200px;
}

.sidebar-map .map-error-icon {
    width: 50px;
    height: 50px;
    font-size: 30px;
    margin-bottom: 0.75rem;
}

.sidebar-map .map-error-title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.sidebar-map .map-error-message {
    font-size: 0.8rem;
    max-width: 100%;
    padding: 0 0.5rem;
}

.info-item {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-item strong {
    color: #333;
}

.info-item a {
    color: #1976d2;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.follow-us-item {
    margin-top: 1rem;
}

.follow-us-item strong {
    display: block;
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
    border: 2px solid #dc3545;
    flex-shrink: 0;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-text {
    font-size: 1rem;
    font-weight: bold;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* Facebook - Red circle with white text */
.social-icon.facebook {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Twitter - White circle with red icon */
.social-icon.twitter {
    background: white;
    border-color: #dc3545;
    color: #dc3545;
}

/* Google Plus - White circle with red text */
.social-icon.google {
    background: white;
    border-color: #dc3545;
    color: #dc3545;
}

/* Instagram - White circle with red icon */
.social-icon.instagram {
    background: white;
    border-color: #dc3545;
    color: #dc3545;
}

/* Pinterest - White circle with red text */
.social-icon.pinterest {
    background: white;
    border-color: #dc3545;
    color: #dc3545;
}

.section-title-with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.section-title-with-icon.today-header {
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.section-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: #1976d2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

.hours-today {
    font-size: 1rem;
    color: #4caf50;
    font-weight: 500;
    margin-left: auto;
}

.sidebar-section h4 {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.sidebar-section h4.section-title-with-icon {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hours-list {
    font-size: 0.9rem;
    color: #555;
}

.hours-item {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e0e0e0;
    color: #555;
}

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

.hours-monday {
    color: #dc3545;
    font-weight: 500;
}

.hours-all-day {
    color: #4caf50;
    font-weight: 500;
}

.nearby-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.nearby-text strong {
    font-weight: 600;
    color: #333;
}

.browse-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.browse-categories a {
    color: #1976d2;
    text-decoration: none;
    font-size: 0.9rem;
}

.browse-categories a:hover {
    text-decoration: underline;
}

.price-range {
    font-size: 0.9rem;
    color: #555;
}

.rating-average {
    text-align: left;
}

.avg-rating-value {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.rating-number {
    font-size: 2rem;
    font-weight: bold;
    color: #dc3545;
    line-height: 1;
}

.rating-label-small {
    font-size: 0.9rem;
    color: #999;
    font-weight: normal;
}

.rating-breakdown {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.rating-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    min-width: 60px;
}

.category-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: normal;
}

.category-score {
    font-size: 1rem;
    font-weight: bold;
    color: #dc3545;
}

.statistics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.stat-icon {
    font-size: 1.1rem;
    display: inline-block;
}

.stat-text {
    color: #555;
}

.contact-business {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.contact-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e91e63;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-info strong {
    display: block;
    margin-bottom: 0.2rem;
}

.contact-info span {
    font-size: 0.85rem;
    color: #666;
}

.contact-form {
    margin-top: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.recaptcha-container {
    margin-top: 0.5rem;
}

.recaptcha-error-box {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.recaptcha-error-text {
    font-size: 0.85rem;
    color: #dc3545;
    flex: 1;
    min-width: 200px;
}

.recaptcha-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.recaptcha-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 3px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recaptcha-checkbox-inner {
    width: 12px;
    height: 12px;
    background: #4285F4;
    border-radius: 2px;
    display: none;
}

.recaptcha-logo {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recaptcha-logo svg {
    width: 100%;
    height: 100%;
}

.recaptcha-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    line-height: 1.2;
}

.recaptcha-brand {
    font-size: 0.7rem;
    color: #555;
    font-weight: 500;
}

.recaptcha-links {
    font-size: 0.6rem;
    color: #999;
}

.btn-send-message {
    width: 100%;
    padding: 0.75rem;
    background: #ff5722;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.btn-send-message:hover {
    background: #e64a19;
}

/* Responsive Design */
@media (max-width: 968px) {
    .detail-body {
        flex-direction: column;
        gap: 1.5rem;
    }

    .detail-banner {
        height: 400px;
    }

    .detail-wrapper {
        padding: 1rem;
    }

    .detail-body {
        padding: 1.5rem;
    }
    
    .detail-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Banner adjustments already defined above */
    
    /* Main content */
    .detail-wrapper {
        padding: 0.5rem;
    }
    
    .detail-container {
        border-radius: 8px;
    }
    
    .detail-body {
        padding: 1rem;
        gap: 1rem;
    }
    
    .detail-section {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .detail-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Amenities */
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Photos */
    .photo-main {
        height: 220px;
    }
    
    .photo-thumbnail {
        height: 80px;
    }
    
    /* Maps */
    .detail-map,
    .sidebar-map {
        height: 250px;
        border-radius: 8px;
    }
    
    /* Reviews */
    .review-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .reviewer-info {
        gap: 0.75rem;
    }
    
    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }
    
    /* Sidebar */
    .detail-sidebar {
        width: 100%;
    }
    
    .sidebar-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Modal content */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 0.95rem;
        padding: 0.5rem;
    }
    
    /* Rating stars */
    .rating-stars {
        font-size: 1.2rem;
    }
    
    /* Prevent horizontal overflow */
    * {
        max-width: 100%;
    }
    
    .container,
    .detail-wrapper,
    .detail-container {
        overflow-x: hidden;
    }
    
    /* Photo gallery */
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .thumbnail-img {
        max-height: 100px;
    }
    
    /* Info items */
    .info-row,
    .amenity-item {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    /* Tabs */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs .nav-link {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .detail-banner {
        height: 350px;
    }
    
    .banner-title {
        font-size: 1.25rem;
    }
    
    .rating-value-large {
        font-size: 2rem;
    }
    
    .btn-banner-action {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    .detail-wrapper {
        padding: 0.25rem;
    }
    
    .detail-body {
        padding: 0.75rem;
    }
    
    .photo-main {
        height: 180px;
    }
    
    .detail-map,
    .sidebar-map {
        height: 200px;
    }
}

