/* Locations Page Styles */
/* Font: HelvLight-Regular */

@font-face {
    font-family: 'HelvLight-Regular';
    src: url('/theme_clarico_vega/static/src/fonts/HELN.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'HelvLight-Regular', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Page Header */
.locations-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 40px;
    margin-bottom: 50px;
}

.locations-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.locations-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 20px;
    font-weight: 300;
}

.locations-count {
    margin-top: 15px;
}

.locations-count .badge {
    font-size: 1rem;
    padding: 10px 25px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 300;
}

/* Locations Grid */
.locations-grid {
    padding: 0 0 80px;
}

/* Location Card */
.location-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.location-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.location-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.location-placeholder {
    color: white;
    font-size: 5rem;
    opacity: 0.8;
}

/* Card Body */
.location-card-body {
    padding: 25px;
    flex-grow: 1;
}

.location-name {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

/* Location Info */
.location-info {
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

.info-item i {
    color: #667eea;
    min-width: 25px;
    margin-right: 10px;
    margin-top: 3px;
    font-size: 1.1rem;
}

.info-item span {
    flex: 1;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Card Footer */
.location-card-footer {
    padding: 20px 25px;
    background-color: #f7fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.location-card-footer .btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

.btn-call {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-call:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-email {
    background-color: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-email:hover {
    background-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Pagination */
.pagination {
    margin-top: 30px;
}

.page-link {
    color: #667eea;
    border: 1px solid #e2e8f0;
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 8px;
    font-weight: 400;
}

.page-link:hover {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 991px) {
    .locations-title {
        font-size: 2.5rem;
    }
    
    .locations-subtitle {
        font-size: 1.1rem;
    }
    
    .location-card-image {
        height: 200px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .locations-header {
        padding: 40px 0 30px;
        margin-bottom: 30px;
    }
    
    .locations-title {
        font-size: 2rem;
    }
    
    .locations-subtitle {
        font-size: 1rem;
    }
    
    .location-card {
        margin-bottom: 20px;
    }
    
    .location-card-image {
        height: 180px;
    }
    
    .location-name {
        font-size: 1.4rem;
    }
    
    .location-card-body {
        padding: 20px;
    }
    
    .location-card-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .location-card-footer .btn {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .locations-title {
        font-size: 1.8rem;
    }
    
    .locations-subtitle {
        font-size: 0.95rem;
    }
    
    .info-item {
        font-size: 0.9rem;
    }
    
    .location-card-image {
        height: 160px;
    }
}

/* Empty State */
.text-muted {
    color: #a0aec0;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-card {
    animation: fadeInUp 0.6s ease-out;
}

.location-card:nth-child(1) { animation-delay: 0.1s; }
.location-card:nth-child(2) { animation-delay: 0.2s; }
.location-card:nth-child(3) { animation-delay: 0.3s; }
.location-card:nth-child(4) { animation-delay: 0.4s; }
.location-card:nth-child(5) { animation-delay: 0.5s; }
.location-card:nth-child(6) { animation-delay: 0.6s; }
.location-card:nth-child(7) { animation-delay: 0.7s; }
.location-card:nth-child(8) { animation-delay: 0.8s; }
.location-card:nth-child(9) { animation-delay: 0.9s; }

/* Snippet Areas Styling */
.oe_structure {
    min-height: 0;
}

.oe_structure.oe_empty {
    min-height: 50px;
}

/* Ensure snippet areas are editable in edit mode */
#locations_top_content,
#locations_before_content,
#locations_after_content,
#locations_bottom_content {
    position: relative;
}

/* Add visual feedback in edit mode */
.editor_enable #locations_top_content:empty:before,
.editor_enable #locations_before_content:empty:before,
.editor_enable #locations_after_content:empty:before,
.editor_enable #locations_bottom_content:empty:before {
    content: "Drop snippets here";
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    margin: 20px 0;
    font-style: italic;
}

/* Spacing for snippet areas */
#locations_top_content:not(:empty),
#locations_before_content:not(:empty) {
    margin-bottom: 40px;
}

#locations_after_content:not(:empty),
#locations_bottom_content:not(:empty) {
    margin-top: 40px;
}
