/* =========================================
   1. GLOBAL SETTINGS & FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Open+Sans:wght@400;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* =========================================
   2. NAVIGATION (MENU) - FIXED STYLE
   ========================================= */
nav {
    background-color: #1a1a1a;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 0 20px;
}

nav a {
    color: #bbb;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 15px;
    letter-spacing: 1px;
}

nav a:hover, nav a.active {
    color: #e6b800;
}

/* ენის გადამრთველი მენიუში */
nav span {
    border-left: 1px solid #444;
    padding-left: 15px;
    margin-left: 5px;
    display: flex;
    align-items: center;
}

nav span a {
    margin: 0 5px;
    font-size: 12px;
}

/* =========================================
   3. MAIN MAP (INDEX.PHP)
   ========================================= */
#map {
    width: 100%;
    height: calc(100vh - 60px); /* ეკრანის სიმაღლე მინუს მენიუ */
    z-index: 1;
}

/* =========================================
   4. COMPACT GRID GALLERY (ALL_MEDIA / LOCATION)
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-image-box {
    position: relative;
    height: 200px;
    background: #ddd;
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-card:hover .card-image-box img {
    transform: scale(1.05);
}

.card-content {
    padding: 15px;
}

.card-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #777;
    align-items: center;
}

.season-tag {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    color: #555;
}

/* აიქონები სურათზე (Play, 360) */
.card-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 2px solid white;
    backdrop-filter: blur(3px);
}

/* =========================================
   5. LOCATION PAGE HEADER
   ========================================= */
.loc-header-v2 {
    background: white;
    text-align: center;
    padding: 60px 20px;
    border-bottom: 1px solid #eee;
}

.loc-header-v2 h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.loc-description-v2 {
    max-width: 800px;
    margin: 0 auto 25px;
    color: #666;
    font-size: 16px;
}

/* --- MODERN BREADCRUMB BACK BUTTON --- */
.back-nav-container {
    max-width: 1200px;
    margin: 20px auto 0; /* მენიუსა და ჰედერს შორის */
    padding: 0 20px;
}

.modern-back-btn {
    display: inline-flex;
    align-items: center;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.modern-back-btn span {
    margin-right: 12px; /* ოდნავ გავზარდოთ დაშორება */
    font-size: 20px;
    line-height: 0; /* რომ ტექსტის გასწვრივ იდეალურად დაცენტრდეს */
    transition: transform 0.3s ease;
}

.modern-back-btn:hover {
    color: #1a1a1a;
}

.modern-back-btn:hover span {
    transform: translateX(-5px); /* ისარი ოდნავ მარცხნივ იწევა */
}

/* ჰედერის კორექცია, რომ ზედმეტი დაშორება არ ჰქონდეს */
.loc-header-v2 {
    padding: 30px 20px 50px !important;
}

.back-btn:hover {
    background: #1a1a1a;
    color: white;
}

/* =========================================
   6. CONTACT PAGE
   ========================================= */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.btn-submit {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.btn-submit:hover {
    background: #e6b800;
    color: black;
}

/* =========================================
   7. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    nav a {
        margin: 0 5px;
        font-size: 11px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .card-image-box {
        height: 150px;
    }
}