/* ============================================
   Park4Night - Klasik PHP Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --secondary: #3b82f6;
    --accent: #f59e0b;
    --danger: #ef4444;
    
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-input: #334155;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: #334155;
    --border-light: #475569;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    --transition: all 0.2s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
	height: 73px;
    z-index: 1000;
    background: linear-gradient(180deg, var(--bg-darker) 0%, rgba(2, 6, 23, 0.95) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.logo-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-subtitle {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-login, .btn-add {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-login:hover, .btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.user-avatar:hover {
    border-color: var(--primary);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.user-info strong {
    display: block;
    font-size: 0.875rem;
}

.user-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.dropdown-link:hover {
    background: var(--bg-input);
    color: var(--danger);
}

/* ============================================
   Main Layout
   ============================================ */
.main {
	display: contents;
    padding-top: 72px;
    min-height: 100vh;
}

.page-container {
    display: flex;
    height: calc(100vh - 130px);
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    width: 320px;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    border-right: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    overflow: hidden;
	position: static;
}

.sidebar.open {
	display: flex;
}

.sidebar-section {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* Search */
.search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper svg {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--bg-card);
    border-color: var(--border-light);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Location List */
.locations-list {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.locations-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.location-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.5rem;
    color: inherit;
}

.location-item:hover {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.location-item.active {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--primary);
}

.location-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.location-info {
    flex: 1;
    min-width: 0;
}

.location-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-type {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.location-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.375rem;
    font-size: 0.75rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fbbf24;
}

.reviews {
    color: var(--text-muted);
}

/* ============================================
   Map Container
   ============================================ */
.map-container {
    flex: 1;
    position: relative;
    background: var(--bg-darker);
	z-index: 100;
}

#map {
    width: 100%;
    height: 100%;
}

/* Buton Stili */
.custom-map-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%); /* Ortalamak için */
    z-index: 1000;
    background: #21c55e;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-weight: bold;
    transition: all 0.3s;
}

.custom-map-btn:hover {
    background: #334155;
    bottom: 12px;
}

/* Bilgi Kutusu (Toast) Stili */
.map-toast {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    display: none; /* Başlangıçta gizli */
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; bottom: 40px; }
    to { opacity: 1; bottom: 60px; }
}

.leaflet-control-gps {
    background-color: #fff;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
}

.leaflet-control-gps:hover {
    background-color: #f4f4f4;
    color: #007bff;
}

.user-location-dot {
    width: 15px !important;
    height: 15px !important;
    background-color: #007bff;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.8);
    display: block !important;
    z-index: 1000;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.sidebar-toggle {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 500;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.sidebar-toggle:hover {
    background: var(--bg-input);
}

/* ============================================
   Location Card (Popup)
   ============================================ */
.location-card {
    position: absolute;
    bottom: 7rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 400px;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideUp 0.3s ease;
    z-index: 1000;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.card-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 1;
}

.card-image {
    height: 180px;
    background: #e5e7eb;
}

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

.card-content {
    padding: 1rem;
}

.card-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.card-rating svg {
    color: #fbbf24;
}

.card-reviews {
    color: #6b7280;
    font-size: 0.875rem;
}

.card-description {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.card-amenities .amenity-tag {
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: #374151;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.card-author {
    font-size: 0.75rem;
    color: #6b7280;
}

.card-directions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.card-directions:hover {
    background: var(--primary-dark);
}

/* ============================================
   Auth Page
   ============================================ */
.auth-page {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
    padding: 2rem;
    text-align: center;
}

.auth-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.auth-notice {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    margin: 1.5rem;
n   background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    color: var(--accent);
    font-size: 0.875rem;
}

.auth-notice svg {
    flex-shrink: 0;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    margin: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    color: var(--danger);
    font-size: 0.875rem;
}

.demo-login-form {
    padding: 0 1.5rem 1.5rem;
}

.demo-login-form .form-group {
    margin-bottom: 1rem;
}

.demo-login-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.demo-login-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.demo-login-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.google-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.demo-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.auth-terms {
    text-align: center;
    padding: 0 1.5rem 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.auth-terms a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.auth-back {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-back a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: var(--transition);
}

.auth-back a:hover {
    color: var(--text-primary);
}

/* ============================================
   Add Location Page
   ============================================ */
.add-location-page {
    min-height: calc(100vh - 56px);
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.add-location-container {
    max-width: 600px;
    margin: 0 auto;
}

.add-location-header {
    text-align: center;
    margin-bottom: 2rem;
}

.add-location-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.add-location-header p {
    color: var(--text-secondary);
}

.add-location-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.form-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 1.25rem;
}

.section-number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-notice {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-notice svg {
    flex-shrink: 0;
    color: var(--primary);
}

.form-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    color: var(--danger);
    font-size: 0.875rem;
}

/* Type Selector */
.type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.type-option input {
    display: none;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.type-card:hover {
    border-color: var(--border-light);
}

.type-option input:checked + .type-card {
    border-color: var(--type-color, var(--primary));
    background: rgba(34, 197, 94, 0.1);
}

.type-icon {
    font-size: 1.5rem;
}

.type-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.amenity-option input {
    display: none;
}

.amenity-label {
    display: block;
    padding: 0.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.amenity-option input:checked + .amenity-label {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-darker);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ============================================
   Location Detail Page
   ============================================ */
.location-detail-page {
    min-height: calc(100vh - 56px);
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--text-primary);
}

.detail-header {
    margin-bottom: 1.5rem;
}

.detail-type {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.detail-header h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.detail-rating svg {
    color: #fbbf24;
}

.rating-value {
    font-weight: 600;
    color: var(--text-primary);
}

.rating-count {
    color: var(--text-muted);
}

.detail-author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.detail-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.detail-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
}

.detail-content h2 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.detail-description {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-description p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.detail-amenities {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.amenity-tag {
    padding: 0.375rem 0.75rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.detail-location p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ============================================
   Flash Messages
   ============================================ */
.flash-message {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 9999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.flash-success {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.flash-error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 1.0rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ============================================
   Custom Leaflet Markers
   ============================================ */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.marker-pin {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pin span {
    transform: rotate(45deg);
    font-size: 16px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 72px;
        bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .location-card {
        left: 1rem;
        right: 1rem;
        transform: none;
        max-width: none;
    }
    
    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .type-selector {
        grid-template-columns: 1fr;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}
