/* Catalog CSS - Unified styles for Restaurants and Hotels */

/* ==========================================================================
   CARD COMPONENTS
   ========================================================================== */

/* Restaurant/Hotel Badge */
.item-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Category */
.item-category {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Description */
.item-description {
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

/* Rating */
.item-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    color: #fbbf24;
    margin-right: 8px;
    font-size: 16px;
}

.rating-text {
    font-size: 12px;
    font-weight: bold;
    /* color: #a0aec0; */
}

.rating-stars {
    color: #ffc107;
}

/* Features */
.item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.feature-tag {
    background: #f7fafc;
    color: #2d3748;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}

/* Buttons */
.btn-view-details {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-white-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-white-outline:hover {
    background: white;
    color: #333;
    text-decoration: none;
}

/* ==========================================================================
   CARD LAYOUTS
   ========================================================================== */

/* Main card styles */
.item-card {
    margin-bottom: 20px;
}

.item-item {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: #fff;
}

.item-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.item-image {
    height: 150px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-item:hover .item-image img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-item:hover .item-overlay {
    opacity: 1;
}

.item-info {
    padding: 20px;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-name {
    font-size: 12px;
}

.item-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.4;
}

.item-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.reviews {
    font-size: 12px;
}

.rating-score {
    font-size: 12px;
    font-weight: bold;
}

/* Price badge */
.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

/* Hotel specific styles */
.item-stars {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.item-amenities {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 10px;
    margin-bottom: 10px;
}

.amenities-list {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.amenity-tag {
    display: inline;
    white-space: nowrap;
}

.booking-available {
    color: #0095fb !important;
    font-weight: 600;
}

.item-info-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.items-section .price-badge {
    background: #007AFF;
    color: #ffffff;
}

/* List View */
.items-content.list-view .item-card {
    display: flex;
    margin-bottom: 20px;
}

.items-content.list-view .item-image {
    width: 200px;
    flex-shrink: 0;
}

.items-content.list-view .item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   FILTERS SECTION
   ========================================================================== */

.items-filters {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 40px;
}

.items-filters .form-control, .items-filters .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 5px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.items-filters .form-control:focus, .items-filters .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
    color: white;
}

.items-filters .form-control:focus {
    background: rgba(0, 0, 0, 0.5);
}

.form-control.light::placeholder {
    color: rgba(255,255,255,0.7);
}

.items-filters .form-control::placeholder, .items-filters .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.items-filters .form-control option, .items-filters .form-control option {
    background: #333;
    color: white;
}

.items-filters .form-control option {
    background: #1a1a1a;
}

.items-filters .form-label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control.light:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.1);
    color: white;
}

.btn-light-outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.btn-light-outline:hover,
.btn-light-outline.active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    color: white;
}

.items-filters .btn-group .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.items-filters .btn-group .btn.active,
.items-filters .btn-group .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   LOADING & ERROR STATES
   ========================================================================== */

.spinner {
    animation: spin 1s linear infinite;
    color: white;
    font-size: 24px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results, .error-message {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.no-results i, .error-message i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.loading-restaurants, .loading-hotels {
    text-align: center;
    padding: 40px;
    width: 100%;
}

.loading-hotels {
    padding: 60px 40px;
}

.loading-hotels .spinner {
    font-size: 32px;
    margin-bottom: 15px;
}

.loading-hotels p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0;
}

/* Error states */
.items-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.items-error .fa-exclamation-triangle {
    color: #dc3545;
    font-size: 24px;
    margin-bottom: 10px;
}

.items-error h4 {
    color: #dc3545;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.items-error p {
    color: rgba(220, 53, 69, 0.8);
    font-size: 14px;
    margin: 0;
}

/* No results state */
#noResults {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 40px 0;
}

#noResults .fa-bed {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

#noResults h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

#noResults p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.nc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nc-pagination .btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination {
    gap: 5px;
}

.pagination .btn {
    min-width: 40px;
    height: 40px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.pagination .btn-white {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.pagination .btn-white-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.pagination .btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.pagination-info {
    margin-top: 15px;
}

.pagination-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* ==========================================================================
   RESULTS AND CATALOG
   ========================================================================== */

.catalog-header {
    margin-bottom: 30px;
}

.results-info h3 {
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
}

.pagination-nav {
    margin-top: 40px;
}

.restaurants-preview-section, .hotels-preview-section, .events-preview-section, .items-preview-section {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.items-content.list-view .item-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.h150 {
    height: 150px;
}

.obj-cover {
    object-fit: cover;
}

.hov-scale-110:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   RESTAURANT DETAIL PAGE STYLES
   ========================================================================== */

.item-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('/images/restaurant-placeholder.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.item-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.item-hero .category {
    font-size: 1.2rem;
    opacity: 0.9;
}

.item-detail-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.item-detail-info h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    text-align: center;
}

.item-detail-meta {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    min-width: 300px;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ffc107;
    font-size: 1.2rem;
}

.star.empty {
    color: rgba(255, 255, 255, 0.3);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-info i {
    width: 20px;
    color: #0095fb;
}

.contact-info a {
    text-decoration: none;
}

.contact-info a:hover {
    color: white;
}

.price-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-symbols {
    color: #0095fb;
    font-weight: bold;
    font-size: 1.2rem;
}

.photo-gallery {
    margin-bottom: 2rem;
}

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

.gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.feature-category-header {
    margin-top: 1rem;
}

.feature-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    margin: 0px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
}

.feature-category-title i {
    color: #667eea;
    font-size: 1.2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    margin-left: 1rem;
}

.feature-item i {
    color: #667eea;
    font-size: 1.4rem;
    width: 20px;
    text-align: center;
}

.feature-item span {
    color: #4a5568;
    /* font-size: 0.9rem; */
}

.hours-section {
    margin-bottom: 2rem;
    /* background: rgba(255, 255, 255, 0.9); */
    
}

.hours-table {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.hours-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

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

.hours-row.today {
    background: rgba(102, 126, 234, 0.2);
    font-weight: bold;
}

.day {
    font-weight: 500;
    /* color: white; */
}

.time {
    text-align: right;
    /* color: rgba(255, 255, 255, 0.8); */
}

.item-map {
    height: 300px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.back-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.section-title {
    color: white;
    border-bottom: 2px solid #0095fb;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    font-size: 1.5rem;
}

/* Responsive Design for Restaurant Detail */
@media (max-width: 768px) {
    .item-hero h1 {
        font-size: 2rem;
    }
    
    .item-detail-header {
        grid-template-columns: 1fr;
    }
    
    .item-detail-meta {
        min-width: auto;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        margin-left: 0.5rem;
        padding: 0px;
    }
}

.bg-white-alpha-1 {
    background: rgba(255, 255, 255, 0.1);
}

.bg-dark-alpha-6 {
    background: rgba(0, 0, 0, 0.6);
}

.hov-opacity-100:hover {
    opacity: 1;
}

.hov-shadow-large:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.transition-all {
    transition: all 0.3s ease;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 991px) {
    .items-filters, .items-filters {
        padding: 20px;
    }
    
    .items-filters .flex-row {
        flex-direction: column;
        gap: 18px;
    }
    
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .restaurants-preview-section {
        margin-top: 100px !important;
    }

    .hotels-preview-section {
        margin-top: 100px !important;
    }

    .events-preview-section {
        margin-top: 100px !important;
    }

    .items-notop {
        margin-top: 0px !important;
    }
    
    .item-card {
        margin-bottom: 15px;
    }
    
    .item-info {
        padding: 15px;
    }
    
    .item-name {
        font-size: 14px;
    }
    
    .item-desc {
        font-size: 13px;
    }
    
    .item-image {
        height: 200px;
    }
    
    .items-filters, .items-filters {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .items-content.list-view .item-card {
        flex-direction: column;
    }
    
    .items-content.list-view .item-image {
        width: 100%;
        height: 200px;
    }
    
    .pagination .btn {
        min-width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .loading-hotels {
        padding: 40px 20px;
    }
    
    .loading-hotels .spinner {
        font-size: 24px;
    }
    
    .loading-hotels p {
        font-size: 14px;
    }
}

/* ==========================================================================
   ACTION BUTTONS (Detail Page)
   ========================================================================== */

.action-buttons-section {
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-buttons-grid {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.action-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 45px;
}

.action-btn i {
    font-size: 24px;
}

.action-btn img,
.action-btn-icon {
    width: 24px;
    height: 24px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: white;
    text-decoration: none;
}

.action-btn-call {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.action-btn-call:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.action-btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
}

.action-btn-whatsapp:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #1aa34e 100%);
}

.action-btn-waze {
    background: linear-gradient(135deg, #00d8ff 0%, #00b8d4 100%);
}

.action-btn-waze:hover {
    background: linear-gradient(135deg, #00b8d4 0%, #0097a7 100%);
}

.action-btn-maps {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
}

.action-btn-maps:hover {
    background: linear-gradient(135deg, #3367d6 0%, #2a56c6 100%);
}

.action-btn-report {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.action-btn-report:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* Mobile responsive */
@media (min-width: 768px) {
    .action-buttons-grid {
        justify-content: flex-start;
    }    
}