@import url('header-styles.css');

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=EB+Garamond:wght@400;500;600&family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

body {
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    background-color: #f8f5f0;
    color: #3a3426;
}

a {
    text-decoration: none;
    color: #7d3c3c;
}

a:hover {
    color: #5c2c2c;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    background-color: #3a3426;
    color: #f0ebe0;
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.filter-section {
    background-color: #f7f2e7;
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 0 15px rgba(58, 52, 38, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e0d6c2;
}

.filter-section h2 {
    margin-bottom: 20px;
    color: #3a3426;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.form-label {
    font-size: 0.9rem;
    color: #6a5f47;
    margin-bottom: 5px;
}

.form-control, .form-select {
    border: 1px solid #d4c9b0;
    border-radius: 0;
    padding: 10px;
    font-size: 0.95rem;
    background-color: #fcf9f2;
    color: #3a3426;
}

.form-control:focus, .form-select:focus {
    border-color: #7d3c3c;
    box-shadow: 0 0 0 0.25rem rgba(125, 60, 60, 0.25);
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6a5f47;
}

.position-relative {
    position: relative;
}

.filter-button {
    background-color: #7d3c3c;
    color: #f0ebe0;
    border: none;
    border-radius: 0;
    padding: 10px 0;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.filter-button:hover {
    background-color: #5c2c2c;
}

.range-slider {
    width: 100%;
    margin: 10px 0;
}

.km-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #6a5f47;
}

.place-card {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s;
    background-color: #f7f2e7;
    border: 1px solid #e0d6c2;
}

.place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.place-image {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

.place-category {
    background-color: #e6dbc8;
    padding: 10px;
    font-size: 0.9em;
    color: #5c4b30;
    text-transform: uppercase;
    font-weight: 600;
}

.place-title {
    padding: 15px;
    font-weight: bold;
    font-size: 1.2em;
    font-family: 'Playfair Display', serif;
}

.place-title a {
    color: #3a3426;
    text-decoration: none;
}

.place-title a:hover {
    color: #7d3c3c;
}

#loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 100%;
}

.place-header {
    background-color: #f7f2e7;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e0d6c2;
}

.place-info {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0d6c2;
    flex-wrap: wrap;
}

.place-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid #d4c9b0;
}

.ratings {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.star {
    color: #b8860b;
    margin-right: 2px;
}

.contact-button {
    background-color: #3d6933; 
    color: #f0ebe0;
    border: none;
    border-radius: 0;
    padding: 10px 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.contact-button:hover {
    background-color: #2c4c26; 
    color: #f0ebe0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.details-section {
    background-color: #f7f2e7;
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e0d6c2;
}

.section-title {
    color: #7d3c3c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    border-bottom: 1px solid #e0d6c2;
    padding-bottom: 10px;
}

.section-title i {
    margin-right: 10px;
}

.detail-text {
    color: #5c4b30;
    line-height: 1.8;
    text-align: justify;
}

.map-container {
    height: 300px;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #e0d6c2;
}

.review-button {
    background-color: #7d3c3c;
    color: #f0ebe0;
    border: none;
    border-radius: 0;
    padding: 10px 0;
    font-weight: bold;
    transition: background-color 0.3s;
}

.review-button:hover {
    background-color: #5c2c2c;
    color: #f0ebe0;
}

.views-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6a5f47;
}

.views-count i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.hero-section {
    background: linear-gradient(rgba(58, 52, 38, 0.7), rgba(58, 52, 38, 0.7)), url('../images/hero-sec-bg.png');
    background-size: cover;
    background-position: center;
    color: #f0ebe0;
    padding: 100px 0;
    margin-bottom: 40px;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-button {
    background-color: #7d3c3c;
    color: #f0ebe0;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 0;
    transition: background-color 0.3s, transform 0.3s;
    border: 1px solid #b18f4b;
}

.hero-button:hover {
    background-color: #5c2c2c;
    color: #f0ebe0;
    transform: translateY(-3px);
}

.category-hero {
    background: linear-gradient(rgba(58, 52, 38, 0.7), rgba(58, 52, 38, 0.7)), url('../images/hero-sec-bg.png');
    background-size: cover;
    background-position: center;
    color: #f0ebe0;
    padding: 80px 0;
    margin-bottom: 40px;
    text-align: center;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
}

.category-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

model-viewer {
    width: 100%;
    height: 300px;
    background-color: #f0ebe0;
    border-radius: 0;
    margin-bottom: 20px;
    border: 1px solid #e0d6c2;
}

.audio-player {
    background-color: #e6dbc8;
    border-radius: 0;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #d4c9b0;
}

.audio-player-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.audio-container {
    display: flex;
    align-items: center;
}

.audio-container audio {
    width: 100%;
    height: 40px;
}

.custom-audio-player {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.audio-controls {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.play-btn, .pause-btn {
    background-color: #7d3c3c;
    color: #f0ebe0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    cursor: pointer;
    border: none;
}

.pause-btn {
    display: none;
}

.audio-info {
    flex-grow: 1;
}

.audio-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.audio-time {
    font-size: 0.8rem;
    color: #6a5f47;
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: #d4c9b0;
    border-radius: 0;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: #7d3c3c;
    border-radius: 0;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-handle {
    width: 14px;
    height: 14px;
    background-color: #7d3c3c;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-left: -7px;
    display: none;
}

.progress-container:hover .progress-handle {
    display: block;
}

.timeline .border-start {
    border-color: #7d3c3c !important;
}

.contact-hero {
    background: linear-gradient(rgba(58, 52, 38, 0.7), rgba(58, 52, 38, 0.7)), url('../images/placeholder-hero.jpg');
    background-size: cover;
    background-position: center;
    color: #f0ebe0;
    padding: 80px 0;
    margin-bottom: 40px;
    text-align: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
}

.contact-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.contact-icon {
    font-size: 2.5rem;
    color: #7d3c3c;
    margin-bottom: 15px;
}

.contact-info-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.contact-info-item {
    margin-bottom: 30px;
}

.form-label {
    font-weight: 600;
}

.required-field::after {
    content: "*";
    color: #7d3c3c;
    margin-left: 4px;
}

.contact-btn {
    background-color: #7d3c3c;
    color: #f0ebe0;
    border: none;
    padding: 10px 30px;
    border-radius: 0;
    font-weight: 600;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #5c2c2c;
    color: #f0ebe0;
}

footer {
    background-color: #f7f2e7 !important;
    border-top: 2px solid #d4c9b0;
    color: #3a3426 !important;
    padding: 2rem 0 1rem !important;
}

footer h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #7d3c3c;
    margin-bottom: 1rem;
    font-weight: 600;
}

footer a {
    color: #5c4b30 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #7d3c3c !important;
    text-decoration: none;
}

.footer-logo {
    height: 80px;
    margin-bottom: 15px;
    display: block;
}

.footer-divider {
    border-top: 1px solid #e0d6c2;
    margin: 20px 0;
}

.footer-social-icons a {
    color: #7d3c3c !important;
    margin-right: 15px;
    font-size: 1.2rem;
}

.footer-social-icons a:hover {
    color: #5c2c2c !important;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #6a5f47;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .place-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ratings {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .contact-button {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    
    .category-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .filter-section, .details-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .place-image {
        height: 150px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-button {
        padding: 10px 20px;
    }
}

.gallery-container {
    margin-bottom: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 160px;
    border: 1px solid #e0d6c2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(58, 52, 38, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(58, 52, 38, 0.7);
    color: #f7f2e7;
    padding: 5px 10px;
    font-size: 0.8rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

#modalImage {
    max-height: 80vh;
}

.modal-footer {
    border-top: 1px solid #e0d6c2;
    background-color: #f7f2e7;
}

.modal-header {
    border-bottom: 1px solid #e0d6c2;
    background-color: #f7f2e7;
}

.gallery-empty {
    text-align: center;
    padding: 30px;
    background-color: #f7f2e7;
    border: 1px dashed #e0d6c2;
    color: #6a5f47;
}

@media (max-width: 768px) {
    .gallery-item {
        height: 120px;
    }
}