/* History Trip v1 - Clean & Minimalist Design */

/* Variables - Logo Colors */
:root {
    /* Logo colors */
    --color-charcoal: #2C2C2C;
    --color-green: #4A7C59;
    --color-green-light: #6B9B7D;
    
    /* Neutral colors */
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-gray: #E5E5E5;
    --color-gray-medium: #999999;
    --color-gray-dark: #666666;
    --color-black: #1A1A1A;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

/* Base Styles */
html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: var(--line-height);
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray);
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-brand:active {
    opacity: 0.7;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

.nav-tagline {
    font-size: 0.85rem !important;
    color: #666666 !important;
    font-style: italic !important;
    font-weight: 400 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.1em !important;
    text-transform: lowercase !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
}

.nav-user-menu {
    display: flex !important;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1001;
}

/* Botones de autenticación */
.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: flex-end;
}

.btn-login {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-green);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
    display: inline-block;
}

.btn-login:hover {
    background: var(--color-green-light);
    transform: translateY(-2px);
}

.btn-register {
    padding: var(--spacing-xs) var(--spacing-md);
    background: transparent;
    color: var(--color-gray-dark);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
    display: inline-block;
}

.btn-register:hover {
    color: var(--color-green);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .auth-buttons {
        flex-direction: row;
        align-items: center;
    }
}

/* Contenedor del menú de usuario */
.user-menu-container {
    display: flex !important;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 1001;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-gray);
    transition: var(--transition);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.user-avatar:hover {
    border-color: var(--color-green);
    transform: scale(1.05);
}

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

/* Botón hamburger del menú */
.menu-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.menu-toggle span {
    width: 22px;
    height: 2.5px;
    background: var(--color-green);
    transition: var(--transition);
    display: block;
    border-radius: 2px;
}

.menu-toggle:hover span {
    background: var(--color-green-light);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--color-green);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--color-green);
}

/* Asegurar visibilidad del botón hamburguesa */
.menu-toggle {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

.menu-toggle span {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    background-color: var(--color-green) !important;
}

/* Asegurar que el botón hamburguesa siempre sea visible */
.menu-toggle {
    visibility: visible !important;
    opacity: 1 !important;
}

.menu-toggle span {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Menú desplegable */
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + var(--spacing-sm));
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 320px;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: var(--spacing-sm);
}

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

/* Sección destacada de Mi Perfil */
.menu-profile-section {
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-light) 100%);
    border-bottom: 2px solid var(--color-green);
}

.menu-profile-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: var(--color-white);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.menu-profile-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.menu-profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.avatar-img-medium {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.menu-profile-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--color-white);
}

.menu-profile-email {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-profile-arrow {
    font-size: 1rem;
    opacity: 0.8;
    transition: var(--transition);
}

.menu-profile-link:hover .menu-profile-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.menu-section {
    border-bottom: 1px solid var(--color-gray-light);
}

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

.menu-section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-gray-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-charcoal);
    position: sticky;
    top: 0;
    z-index: 10;
}

.menu-section-header i {
    color: var(--color-green);
    font-size: 1rem;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items li {
    border-bottom: 1px solid var(--color-gray-light);
}

.menu-items li:last-child {
    border-bottom: none;
}

.menu-items a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--color-gray-dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.menu-items a:hover {
    background: var(--color-gray-light);
    color: var(--color-green);
    padding-left: calc(var(--spacing-lg) + var(--spacing-xs));
}

.menu-items a i {
    width: 20px;
    text-align: center;
    color: var(--color-gray-medium);
    font-size: 0.9rem;
}

.menu-items a:hover i {
    color: var(--color-green);
}

.menu-footer {
    padding: var(--spacing-md);
    border-top: 2px solid var(--color-gray);
    background: var(--color-gray-light);
}

.menu-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-charcoal);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}

.menu-logout:hover {
    background: var(--color-green);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .user-menu-dropdown {
        right: var(--spacing-md);
        left: var(--spacing-md);
        min-width: auto;
        max-width: none;
    }
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-charcoal);
    transition: var(--transition);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--color-green);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-green-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gray-dark);
    border: 1px solid var(--color-gray);
}

.btn-secondary:hover {
    background: var(--color-gray-light);
    border-color: var(--color-gray-dark);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: var(--spacing-xxl);
    background: var(--color-white);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
        padding-bottom: var(--spacing-xl);
        min-height: auto;
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.03em;
    display: block;
    visibility: visible;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-xxl);
    line-height: 1.6;
    font-weight: 400;
    display: block;
    visibility: visible;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Chat Container */
.chat-container {
    max-width: 800px;
    width: 100%;
    margin: var(--spacing-xxl) auto 0;
    box-sizing: border-box;
    padding: 0 var(--spacing-sm);
}

@media (max-width: 768px) {
    .chat-container {
        padding: 0;
        margin: var(--spacing-lg) auto 0;
    }
}

.chat-form {
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .chat-form {
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
    }
}

.chat-form:focus-within {
    border-color: var(--color-green);
    box-shadow: 0 4px 12px rgba(107, 157, 125, 0.15);
}

.chat-input-wrapper {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.chat-input {
    width: 100%;
    min-height: 120px;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-charcoal);
    background: transparent;
    resize: vertical;
    outline: none;
}

.chat-input::placeholder {
    color: var(--color-gray-dark);
}

.chat-actions {
    position: absolute;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-xs);
}

.chat-icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-gray-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.chat-icon-btn:hover {
    background: var(--color-gray-light);
    color: var(--color-charcoal);
}

.chat-icon-btn.recording {
    background: var(--color-green);
    color: white;
    animation: pulse-recording 1.5s ease-in-out infinite;
}

.chat-icon-btn.recording:hover {
    background: var(--color-green-light);
}

@keyframes pulse-recording {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.chat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-gray);
}

.chat-footer-left,
.chat-footer-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.chat-model-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-gray-dark);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.chat-model-btn:hover {
    background: var(--color-gray-light);
    border-color: var(--color-gray-dark);
}

.chat-lucky-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-gray-dark);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.chat-lucky-btn:hover {
    background: var(--color-gray-light);
}

.chat-submit-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-sm);
    background: var(--color-green);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.chat-submit-btn:hover:not(:disabled) {
    background: var(--color-green-light);
    transform: translateY(-1px);
}

.chat-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-demo {
    margin-top: var(--spacing-lg);
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

@media (max-width: 768px) {
    .chat-container {
        padding: 0 var(--spacing-xs);
    }
    
    .chat-form {
        padding: var(--spacing-md);
    }
    
    .chat-footer {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }

    .chat-footer-left,
    .chat-footer-right {
        justify-content: space-between;
        width: 100%;
        flex-wrap: wrap;
    }

    .chat-lucky-btn {
        flex: 1;
        min-width: 0;
    }

    .chat-submit-btn {
        flex: 1;
        min-width: 0;
    }
    
    .chat-input {
        min-height: 100px;
        padding: var(--spacing-sm);
        font-size: 0.95rem;
    }
    
    .chat-actions {
        bottom: var(--spacing-xs);
        right: var(--spacing-xs);
    }
}

@media (max-width: 480px) {
    .chat-container {
        padding: 0;
    }
    
    .chat-form {
        border-radius: var(--radius-sm);
        padding: var(--spacing-sm);
    }
    
    .chat-input {
        min-height: 80px;
        font-size: 0.9rem;
    }
}

/* Chat Result Container */
.chat-result-container {
    display: none;
    margin-top: var(--spacing-xl);
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 0.4s ease-out;
}

.chat-result {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.chat-result-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-green);
}

.chat-result-header h3 {
    color: var(--color-charcoal);
    font-size: 1.8em;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.chat-result-location {
    color: var(--color-gray-dark);
    font-size: 1em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-result-story {
    color: var(--color-charcoal);
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    text-align: justify;
}

.chat-result-story p {
    margin-bottom: var(--spacing-md);
}

.chat-result-audio {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.btn-audio-play,
.btn-audio-stop {
    background: var(--color-green);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-audio-play:hover,
.btn-audio-stop:hover {
    background: var(--color-green-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.btn-audio-stop {
    background: var(--color-charcoal);
}

.btn-audio-stop:hover {
    background: var(--color-gray-dark);
}

.chat-result-places {
    background: var(--color-bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.chat-result-places h4 {
    color: var(--color-charcoal);
    font-size: 1.1em;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.chat-result-places ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chat-result-places li {
    padding: var(--spacing-xs) 0;
}

.chat-result-places a {
    color: var(--color-green);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.chat-result-places a:hover {
    color: var(--color-green-light);
    text-decoration: underline;
}

.chat-result-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lugares cercanos en el chat */
.chat-result-nearby {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--color-green);
}

.chat-result-nearby h4 {
    color: var(--color-charcoal);
    font-size: 1.2em;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nearby-places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.nearby-place-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nearby-place-card:hover {
    border-color: var(--color-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.2);
}

.nearby-place-name {
    color: var(--color-charcoal);
    font-weight: 600;
    font-size: 1em;
    margin-bottom: var(--spacing-xs);
}

.nearby-place-location {
    color: var(--color-gray-dark);
    font-size: 0.85em;
    margin-bottom: var(--spacing-xs);
}

.nearby-place-distance {
    color: var(--color-green);
    font-size: 0.8em;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.nearby-place-rating {
    color: var(--color-gray-dark);
    font-size: 0.85em;
    margin-top: var(--spacing-xs);
}

@media (max-width: 768px) {
    .chat-result {
        padding: var(--spacing-lg);
    }
    
    .chat-result-header h3 {
        font-size: 1.5em;
    }
    
    .chat-result-story {
        font-size: 1em;
    }
    
    .chat-result-actions {
        flex-direction: column-reverse;
    }
    
    .chat-result-actions button {
        width: 100%;
    }
    
    .nearby-places-grid {
        grid-template-columns: 1fr;
    }
}

/* Features Section */
.features {
    padding: var(--spacing-xxl) 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-gray);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.my-places-preview .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(74, 124, 89, 0.15);
    border-color: var(--color-green);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-icon-wrapper i {
    font-size: 3rem;
    color: var(--color-green);
    line-height: 1;
    position: relative;
    z-index: 1;
}

.feature-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-green);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0.3;
    z-index: 0;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 1rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* My Places Preview Section */
.my-places-preview {
    padding: var(--spacing-xxl) 0;
    background: var(--color-gray-light);
    border-top: 1px solid var(--color-gray);
}

.place-preview-card {
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.place-preview-card:hover {
    cursor: pointer;
}

.place-preview-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: var(--color-gray-light);
    position: relative;
}

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

.place-preview-card:hover .place-preview-image img {
    transform: scale(1.05);
}

.place-preview-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.place-preview-content h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.place-preview-content p {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.place-preview-content h3 {
    margin-bottom: var(--spacing-sm);
}

.place-preview-content p {
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

.place-preview-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-gray);
    font-size: 0.9rem;
}

.place-preview-location,
.place-preview-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color-gray-dark);
}

.place-preview-location i {
    color: var(--color-green);
}

.place-preview-rating {
    color: #856404;
}

.place-preview-rating i {
    color: #ffc107;
}

.place-preview-more {
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.05) 0%, rgba(107, 157, 125, 0.05) 100%);
    border-color: var(--color-green);
}

.place-preview-more:hover {
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.1) 0%, rgba(107, 157, 125, 0.1) 100%);
}

.loading-placeholder {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-gray-dark);
    grid-column: 1 / -1;
}

.loading-placeholder i {
    font-size: 2rem;
    color: var(--color-green);
    margin-bottom: var(--spacing-md);
    display: block;
    animation: spin 1s linear infinite;
}

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

.loading-placeholder p {
    color: var(--color-gray-dark);
    font-size: 1rem;
}

.no-places-preview,
.error-preview {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-gray-dark);
    grid-column: 1 / -1;
}

.no-places-preview i,
.error-preview i {
    font-size: 3rem;
    color: var(--color-gray-medium);
    margin-bottom: var(--spacing-md);
    display: block;
}

.no-places-preview p,
.error-preview p {
    margin-bottom: var(--spacing-md);
}

.error-preview small {
    display: block;
    color: var(--color-gray-medium);
    font-size: 0.85rem;
    margin-top: var(--spacing-sm);
}

.no-places-preview .btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
}

/* How It Works */
.how-it-works {
    padding: var(--spacing-xxl) 0;
    background: var(--color-gray-light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.step {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(74, 124, 89, 0.15);
    border-color: var(--color-green);
}

.step:hover::before {
    transform: scaleX(1);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step-icon i {
    font-size: 3rem;
    color: var(--color-green);
    line-height: 1;
    position: relative;
    z-index: 1;
}

.step-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-green);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0.3;
    z-index: 0;
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.step p {
    font-size: 1rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* CTA Section */
.cta {
    padding: var(--spacing-xxl) 0;
    background: var(--color-white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-xl);
}

/* Footer */
.footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
    background: var(--color-charcoal);
    color: var(--color-white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.logo-img-small {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-weight: 300;
    margin: 0;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: var(--spacing-xxl) 0;
    margin-top: 110px;
}

.main-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .main-content h1 {
        font-size: 2.25rem;
    }
}

.main-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.main-content p {
    font-size: 1.1rem;
    color: var(--color-gray-dark);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* Auth Section */
.auth-section {
    min-height: calc(100vh - 200px);
    padding: var(--spacing-xxl) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-light);
}

.auth-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 var(--spacing-md);
}

.auth-container {
    max-width: 480px;
    width: 100%;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--spacing-xs);
}

.auth-header p {
    color: var(--color-gray-dark);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: start;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-charcoal);
}

.form-group input {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-gray-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-link {
    color: var(--color-green);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    margin-top: var(--spacing-sm);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--spacing-md) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-gray);
}

.auth-divider span {
    padding: 0 var(--spacing-md);
    color: var(--color-gray-medium);
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    margin-top: var(--spacing-md);
}

.auth-footer p {
    color: var(--color-gray-dark);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--color-green);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions button,
    .hero-actions a {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .auth-container {
        padding: var(--spacing-lg);
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal-container {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-gray);
    background: var(--color-gray-light);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-green);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.modal-close:hover {
    background: var(--color-green-light);
    transform: scale(1.1);
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    line-height: 1.8;
}

.document-content {
    color: var(--color-gray-dark);
}

.document-content h3 {
    color: var(--color-charcoal);
}

/* Location Indicator */
.location-indicator {
    position: fixed;
    top: 125px;
    right: 20px;
    z-index: 999;
    max-width: 350px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.location-status {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
}

.location-status.requesting {
    border-color: var(--color-gray-medium);
}

.location-status.active {
    border-color: var(--color-green);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(74, 124, 89, 0.2);
}

.location-status.error {
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
}

.location-status i {
    font-size: 1.2em;
    min-width: 20px;
}

.location-status.requesting i {
    color: var(--color-gray-medium);
    animation: spin 1s linear infinite;
}

.location-status.active i {
    color: var(--color-green);
}

.location-status.error i {
    color: #ff6b6b;
}

.location-status span {
    flex: 1;
    color: var(--color-charcoal);
    font-weight: 500;
}

.location-status small {
    display: block;
    color: var(--color-gray-dark);
    font-size: 0.85em;
    margin-top: 2px;
}

.location-refresh-btn,
.location-retry-btn {
    background: transparent;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    color: var(--color-gray-dark);
    transition: var(--transition);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-map-btn {
    background: transparent;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    color: var(--color-green);
    transition: var(--transition);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-map-btn:hover {
    border-color: var(--color-green);
    background: rgba(74, 124, 89, 0.1);
    transform: scale(1.05);
}

.location-refresh-btn:hover {
    border-color: var(--color-green);
    color: var(--color-green);
    background: rgba(74, 124, 89, 0.1);
}

.location-retry-btn:hover {
    border-color: var(--color-green);
    color: var(--color-green);
    background: rgba(74, 124, 89, 0.1);
}

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

@media (max-width: 768px) {
    .location-indicator {
        top: 105px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .location-status {
        font-size: 0.85rem;
        padding: var(--spacing-sm);
    }
    
    .location-status small {
        font-size: 0.8em;
    }
}

/* Location Map Modal */
.location-map-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.location-map-content {
    position: relative;
    width: 95%;
    height: 95%;
    max-width: 1600px;
    max-height: 900px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.location-map-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

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

.location-map-close {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-gray);
    color: var(--color-charcoal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.location-map-close:hover {
    background: var(--color-white);
    border-color: var(--color-green);
    color: var(--color-green);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.3);
}

.location-map-container {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.location-map-sidebar {
    width: 350px;
    background: var(--color-white);
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
}

.map-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--color-gray-light), var(--color-white));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.map-sidebar-header h3 {
    color: var(--color-charcoal);
    font-size: 1.2em;
    margin: 0;
}

.sidebar-menu-container {
    position: relative;
    flex: 1;
    margin-right: 10px;
}

.sidebar-menu-toggle {
    width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    color: var(--color-charcoal);
    font-size: 0.95em;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.sidebar-menu-toggle:hover {
    border-color: var(--color-green);
    background: var(--color-bg);
}

.sidebar-menu-toggle i {
    font-size: 0.85em;
    transition: transform 0.3s ease;
    color: var(--color-text-light);
}

.sidebar-menu-toggle.active i {
    transform: rotate(180deg);
}

.sidebar-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

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

.menu-option {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 15px;
    text-align: left;
    cursor: pointer;
    color: var(--color-charcoal);
    font-size: 0.9em;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--color-border);
}

.menu-option:last-child {
    border-bottom: none;
}

.menu-option:hover {
    background: var(--color-bg);
    color: var(--color-green);
}

.menu-option.active {
    background: rgba(74, 124, 89, 0.1);
    color: var(--color-green);
    font-weight: 600;
}

.menu-option i {
    width: 18px;
    text-align: center;
    color: var(--color-text-light);
}

.menu-option:hover i,
.menu-option.active i {
    color: var(--color-green);
}

.sidebar-toggle {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--color-text);
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: var(--color-bg);
    border-color: var(--color-green);
    color: var(--color-green);
}

/* Map Search */
.map-search-container {
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-white);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Category Filter */
.map-category-filter {
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-white);
}

.category-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: 8px;
}

.category-filter-label i {
    color: var(--color-green);
    font-size: 0.85rem;
}

.category-filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-family);
    background: var(--color-white);
    color: var(--color-charcoal);
    cursor: pointer;
    transition: var(--transition);
}

.category-filter-select:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.category-filter-select:hover {
    border-color: var(--color-green);
}

/* Radius Filter */
.map-radius-filter {
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-white);
}

.radius-filter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: 12px;
}

.radius-filter-label i {
    color: var(--color-green);
    font-size: 0.85rem;
}

.radius-value {
    font-weight: 600;
    color: var(--color-green);
    font-size: 1rem;
    min-width: 60px;
    text-align: right;
}

.radius-slider-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.radius-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--color-gray);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-green);
    cursor: pointer;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.radius-slider::-webkit-slider-thumb:hover {
    background: var(--color-green-light);
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(74, 124, 89, 0.3);
}

.radius-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-green);
    cursor: pointer;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.radius-slider::-moz-range-thumb:hover {
    background: var(--color-green-light);
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(74, 124, 89, 0.3);
}

.radius-slider:focus {
    outline: none;
}

.radius-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.2);
}

.radius-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-gray-medium);
    padding: 0 2px;
}

.map-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.map-search-icon {
    position: absolute;
    left: 12px;
    color: var(--color-gray-medium);
    font-size: 0.9rem;
    z-index: 1;
}

.map-search-input {
    width: 100%;
    padding: 10px 40px 10px 38px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-family);
    transition: var(--transition);
    background: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.map-search-input:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.map-search-clear {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--color-gray-medium);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: var(--transition);
}

.map-search-clear:hover {
    background: var(--color-gray-light);
    color: var(--color-charcoal);
}

.map-search-results {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10003;
    margin-top: 5px;
}

.map-search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.map-search-result-item:last-child {
    border-bottom: none;
}

.map-search-result-item:hover {
    background: var(--color-gray-light);
}

.map-search-result-name {
    font-weight: 600;
    color: var(--color-charcoal);
    font-size: 0.95rem;
}

.map-search-result-location {
    font-size: 0.85rem;
    color: var(--color-gray-dark);
}

.map-search-result-distance {
    font-size: 0.8rem;
    color: var(--color-green);
    font-weight: 500;
}

.places-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.places-section {
    margin-bottom: 25px;
}

.places-section h4 {
    color: var(--color-charcoal);
    font-size: 1em;
    margin-bottom: 15px;
    font-weight: 600;
}

.places-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.place-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.place-card:hover {
    border-color: var(--color-green);
    transform: translateX(3px);
    box-shadow: 0 4px 8px rgba(74, 124, 89, 0.15);
}

.place-card.featured {
    border-color: var(--color-green);
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.05) 0%, rgba(107, 157, 125, 0.05) 100%);
}

.place-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 5px;
}

.place-card-header h5 {
    color: var(--color-charcoal);
    font-size: 0.85em;
    margin: 0;
    flex: 1;
    font-weight: 600;
    line-height: 1.3;
}

.place-rating-badge {
    background: rgba(74, 124, 89, 0.1);
    color: var(--color-gray-dark);
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 0.75em;
    white-space: nowrap;
    font-weight: 500;
}

.place-rating-badge .fa-star {
    color: #d1d5db;
    font-size: 0.7em;
}

.place-rating {
    color: var(--color-gray-medium);
    font-size: 0.75em;
    margin: 0;
    opacity: 0.8;
}

.place-rating .fa-star {
    color: #d1d5db;
    font-size: 0.7em;
}

.place-meta-rating {
    color: var(--color-gray-medium);
    font-size: 0.75em;
}

.place-meta-rating .fa-star {
    color: #d1d5db;
    font-size: 0.7em;
}

.place-category-tag {
    color: var(--color-gray-dark);
    font-size: 0.75em;
    margin: 4px 0;
}

.place-distance-tag {
    color: var(--color-text-light);
    font-size: 0.7em;
    margin: 0;
}

.loading-places,
.no-places {
    text-align: center;
    color: var(--color-text-light);
    padding: 40px 20px;
    font-size: 0.9em;
}

.place-info-window {
    max-width: 300px;
    padding: 5px;
}

.place-info-window h3 {
    color: var(--color-charcoal);
    font-size: 1.1em;
    margin: 0 0 8px 0;
}

.place-info-window .place-category {
    color: var(--color-green);
    font-size: 0.9em;
    margin: 5px 0;
    font-weight: 500;
}

.place-info-window .place-rating {
    color: var(--color-gray-dark);
    font-size: 0.9em;
    margin: 5px 0;
}

.place-info-window .place-distance {
    color: var(--color-text-light);
    font-size: 0.85em;
    margin: 5px 0;
}

.place-info-window .place-description {
    color: var(--color-gray-dark);
    font-size: 0.9em;
    margin: 10px 0;
    line-height: 1.4;
}

/* Place Card Actions */
.place-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.place-action-btn {
    flex: 1;
    padding: 8px 12px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gray-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.place-action-btn:hover {
    background: var(--color-gray-light);
    border-color: var(--color-green);
    color: var(--color-green);
}

.place-action-btn.active {
    background: var(--color-green);
    border-color: var(--color-green);
    color: var(--color-white);
}

.place-action-btn.active:hover {
    background: var(--color-green-light);
}

.place-action-btn i {
    font-size: 0.9rem;
}

.place-action-btn span {
    font-size: 0.85rem;
}

/* Place Info Window Actions */
.place-info-actions {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.place-info-actions .place-action-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.place-info-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: var(--color-green);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.place-info-btn:hover {
    background: var(--color-green-light);
}

.place-info-btn {
    background: var(--color-green);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    transition: var(--transition);
}

.place-info-btn:hover {
    background: var(--color-green-light);
}

.location-help-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    color: var(--color-green);
    transition: var(--transition);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-help-btn:hover {
    border-color: var(--color-green);
    background: rgba(74, 124, 89, 0.1);
}

/* Modal de Permisos de Geolocalización */
.location-permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.location-permission-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-gray);
    background: var(--color-white);
    color: var(--color-charcoal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: var(--transition);
    z-index: 10;
}

.modal-close-btn:hover {
    border-color: var(--color-green);
    color: var(--color-green);
    background: var(--color-gray-light);
    transform: scale(1.1);
}

.permission-modal-header {
    text-align: center;
    padding: 40px 30px 30px;
    border-bottom: 1px solid var(--color-border);
}

.permission-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.1) 0%, rgba(107, 157, 125, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: var(--color-green);
}

.permission-modal-header h2 {
    color: var(--color-charcoal);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.permission-modal-header p {
    color: var(--color-gray-dark);
    font-size: 1em;
    margin: 0;
}

.permission-instructions {
    padding: 30px;
}

.instruction-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-border);
}

.instruction-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instruction-tab:hover {
    color: var(--color-text);
}

.instruction-tab.active {
    color: var(--color-green);
    border-bottom-color: var(--color-green);
}

.instruction-content {
    display: none;
}

.instruction-content.active {
    display: block;
}

.browser-instruction {
    background: var(--color-bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
}

.browser-instruction h3 {
    color: var(--color-charcoal);
    font-size: 1.2em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.browser-instruction h3 i {
    font-size: 1.3em;
}

.browser-instruction ol {
    margin: 0;
    padding-left: 25px;
    color: var(--color-gray-dark);
}

.browser-instruction li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.browser-instruction strong {
    color: var(--color-charcoal);
}

.permission-modal-footer {
    padding: 25px 30px;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: var(--color-gray-light);
}

@media (max-width: 768px) {
    .location-map-content {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
    
    .location-map-close {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1em;
        z-index: 10002;
    }
    
    .location-map-sidebar {
        position: absolute;
        right: -100%;
        top: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        z-index: 10001;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    }
    
    .location-map-sidebar.open {
        right: 0;
    }
    
    .location-map-container {
        width: 100%;
    }
    
    .location-permission-content {
        max-height: 95vh;
        border-radius: var(--radius-md);
    }
    
    .permission-modal-header {
        padding: 30px 20px 20px;
    }
    
    .permission-instructions {
        padding: 20px;
    }
    
    .permission-modal-footer {
        flex-direction: column-reverse;
        padding: 20px;
    }
    
    .permission-modal-footer button {
        width: 100%;
    }
}
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.document-content p {
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.document-content p.list-item {
    padding-left: var(--spacing-md);
    margin-left: var(--spacing-sm);
}

.modal-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--color-gray);
    background: var(--color-gray-light);
    text-align: center;
}

.scroll-indicator {
    color: var(--color-gray-medium);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    animation: moveDown 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes moveDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

.modal-link {
    color: var(--color-green);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.modal-link:hover {
    text-decoration: underline;
}

/* Place Details Modal */
.place-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.place-details-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.place-details-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: var(--color-charcoal);
    z-index: 15001;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.place-details-close:hover {
    background: var(--color-white);
    transform: rotate(90deg);
    color: var(--color-green);
}

.place-details-loading,
.place-details-error {
    padding: 60px 40px;
    text-align: center;
    color: var(--color-gray-dark);
}

.place-details-loading i {
    font-size: 2em;
    color: var(--color-green);
    margin-bottom: 15px;
}

.place-details-error i {
    font-size: 2em;
    color: #e74c3c;
    margin-bottom: 15px;
}

.place-details-body {
    display: flex;
    flex-direction: column;
}

.place-details-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--color-gray-light);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.place-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-medium);
    background: var(--color-gray-light);
}

.place-no-image i {
    font-size: 4em;
    margin-bottom: 15px;
    opacity: 0.5;
}

.place-details-info {
    padding: 30px;
}

.place-details-info h2 {
    font-size: 2em;
    color: var(--color-charcoal);
    margin-bottom: 15px;
    font-weight: 700;
}

.place-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-gray);
}

.place-meta-category,
.place-meta-rating,
.place-meta-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95em;
    color: var(--color-gray-dark);
}

.place-meta-category i,
.place-meta-location i {
    color: var(--color-green);
}

.place-meta-rating i {
    color: #f39c12;
}

.place-details-description,
.place-details-history {
    margin-bottom: 25px;
}

.place-details-description h3,
.place-details-history h3 {
    font-size: 1.3em;
    color: var(--color-charcoal);
    margin-bottom: 12px;
    font-weight: 600;
}

.place-details-description p,
.place-details-history p {
    color: var(--color-gray-dark);
    line-height: 1.8;
    font-size: 1em;
    text-align: justify;
}

.place-details-address {
    padding: 15px;
    background: var(--color-gray-light);
    border-radius: var(--radius-md);
    color: var(--color-gray-dark);
    font-size: 0.95em;
}

.place-details-address i {
    color: var(--color-green);
    margin-right: 8px;
}

/* Galería de fotos */
.place-details-photo-gallery {
    padding: 15px 30px;
    background: var(--color-gray-light);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.place-photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.place-photo-thumb {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.place-photo-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Información de contacto */
.place-details-contact {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--color-gray-light);
    border-radius: var(--radius-md);
}

.place-details-contact p {
    margin: 8px 0;
    color: var(--color-gray-dark);
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.place-details-contact i {
    color: var(--color-green);
    width: 20px;
    text-align: center;
}

.place-details-contact a {
    color: var(--color-green);
    text-decoration: none;
    transition: var(--transition);
}

.place-details-contact a:hover {
    text-decoration: underline;
}

.place-opening-hours {
    margin-top: 15px;
}

.place-opening-hours h4 {
    font-size: 1em;
    color: var(--color-charcoal);
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.place-opening-hours h4 i {
    color: var(--color-green);
}

.place-opening-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.place-opening-hours li {
    padding: 5px 0;
    font-size: 0.9em;
    color: var(--color-gray-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.place-opening-hours li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .place-details-modal {
        padding: 10px;
    }
    
    .place-details-content {
        max-height: 95vh;
        border-radius: var(--radius-md);
    }
    
    .place-details-image {
        height: 250px;
    }
    
    .place-details-info {
        padding: 20px;
    }
    
    .place-details-info h2 {
        font-size: 1.5em;
    }
    
    .place-details-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Modal de Galería de Fotos */
.place-photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.place-photo-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.place-photo-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.place-photo-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: var(--color-charcoal);
    z-index: 20001;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.place-photo-close:hover {
    background: var(--color-white);
    transform: rotate(90deg) scale(1.1);
    color: var(--color-green);
}

.place-photo-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.place-photo-prev,
.place-photo-next {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: var(--color-charcoal);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.place-photo-prev:hover,
.place-photo-next:hover {
    background: var(--color-white);
    transform: scale(1.1);
    color: var(--color-green);
}

.place-photo-prev {
    left: 20px;
}

.place-photo-next {
    right: 20px;
}

.place-photo-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .place-photo-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    
    .place-photo-prev,
    .place-photo-next {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
    
    .place-photo-prev {
        left: 10px;
    }
    
    .place-photo-next {
        right: 10px;
    }
    
    .place-photo-counter {
        bottom: 10px;
    }
}

