/* Restaurant Details Page Styles */

/* Restaurant Hero Section */
.restaurant-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.restaurant-banner {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,#CD853F  50%, #DEB887 75%, #F5DEB3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 60px 20px 20px 40px;
    color: white;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.restaurant-name {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: left;
    justify-content: flex-start;
}

.restaurant-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    padding: 8px;
    flex-shrink: 0;
}

.restaurant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: flex-start;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffd700;
    font-size: 1.1rem;
}

.rating-number {
    font-weight: 600;
    font-size: 1.2rem;
}

.review-count {
    color: rgba(255,255,255,0.8);
}

.cuisine-type, .location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
}

.cuisine-type i, .location i {
    color: #ff6b35;
}

/* Restaurant Navigation Tabs */
.restaurant-nav {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.tab-nav {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 20px 30px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-size: 1rem;
}

.tab-btn:hover {
    color: #ff6b35;
}

.tab-btn.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

/* Tab Content */
.tab-content-container {
    padding: 40px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    /* main content + sidebar (fixed) to ensure the sidebar (map/info) stays on the right */
    grid-template-columns: 2fr 360px;
    gap: 40px;
    align-items: start;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: start;/*quitar si hay problema*/
    gap: 40px;
}

/* Special Offers */
.special-offers h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.offer-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 25px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    align-items: center;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.offer-badge {
    background: #ff6b35;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.offer-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #222;
}

.offer-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.offer-btn {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.offer-btn:hover {
    background: #ff6b35;
    color: white;
}

.offer-image img {
    width: 200px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

/* Menu Highlights */
.menu-highlights h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.dish-card {
    background: white;
    border-radius: 20px;/*15px*/
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.dish-card:hover {
    transform: translateY(-5px);
}

.dish-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
            transition: transform 0.5s ease;
    /* width: 100%;
    height: 200px;
    object-fit: cover; */
}

.dish-info {
    padding: 20px;
}

.dish-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.dish-info p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6b35;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

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

.info-item i {
    color: #ff6b35;
    font-size: 1.1rem;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.info-item p {
    color: #666;
    line-height: 1.4;
}

.info-card .horarios-container {
    flex-grow: 1;
}

.info-card .horarios-container .horario-dia {
    display: flex;
    justify-content: space-between;
}
.info-card .horarios-container .horario-dia p {
    width: 50%;
    text-align: start;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-placeholder {
    width: 100%;
    height: 260px;
    background: #f1f1f1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-weight: 600;
}

.restaurant-map {
    width: 100%;
    height: 260px; /* matches placeholder height */
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Remove underline for direction links and keep styling consistent */
.directions-link,
.directions-link:visited {
    text-decoration: none;

}
.directions-link:hover,
.directions-link:focus {
    text-decoration: none;
}

.btn-save, .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 18px;
    border-radius: 10px;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    background: white;
    cursor: pointer;
    font-size: 1rem;
}
.btn-save.saved {
    background: #ff6b35;
    color: white;
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-secondary:hover {
    background: #ff6b35;
    color: white;
}

/* Menu Section */
.menu-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #222;
}

.menu-categories {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.category-btn {
    background: none;
    border: none;
    padding: 15px 0;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.item-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.item-info p {
    color: #666;
    line-height: 1.4;
}

.item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6b35;
}

/* Reviews Section */
.reviews-header {
    margin-bottom: 30px;
}

.reviews-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
}

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

.rating-large {
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b35;
    display: block;
}

.stars-large {
    color: #ffd700;
    font-size: 1.2rem;
    margin: 10px 0;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.rating-bar span:first-child {
    width: 15px;
    text-align: center;
}

.bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: #ff6b35;
}

.rating-bar span:last-child {
    width: 40px;
    text-align: right;
    color: #666;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-details h4 {
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

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

.review-rating {
    color: #ffd700;
    margin-bottom: 15px;
}

.review-text {
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-actions {
    display: flex;
    gap: 15px;
}

.like-btn, .dislike-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.like-btn:hover {
    color: #28a745;
}

.dislike-btn:hover {
    color: #dc3545;
}

/* About Section */
.about-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.about-content p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature i {
    font-size: 2.5rem;
    color: #ff6b35;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.feature p {
    color: #666;
    line-height: 1.4;
}

/* Boton siguiente */
#btn-siguiente{
    position: fixed;
    right: 5rem;
    bottom: 5rem;
    z-index: 1000;
    padding: 1.2rem 2rem;
    font-weight: 500;
    font-size: 1.3rem;
}


/* Responsive Design */
@media (max-width: 768px) {
    .restaurant-name {
        font-size: 2rem;
    }
    
    .restaurant-meta {
        gap: 15px;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .offer-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .dishes-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .tab-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 15px 20px;
    }
    
    .menu-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .category-btn {
        white-space: nowrap;
        margin-right: 20px;
    }
}
