﻿/**
 * LAS CASAS MARKETPLACE - HOST DASHBOARD CSS
 * 
 * Estilos para el panel de gestión del anfitrión
 * 
 * @since 3.0.0
 */

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    --primary: #E2C48E;
    --primary-hover: #F8D189;
    --secondary: #505050;
    --dark: #0B1014;
    --text: #C2C2C2;
    --text-light: #ffffff;
    --text-muted: #9aa0a6;
    --border: #F7F6F2;
    --success: #4CAF50;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;

    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;

    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 22px;
    --font-size-xxl: 28px;

    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}
.lc-hidden {
    display: none !important;
}
/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.lc-dashboard-host-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background: var(--dark);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* ============================================
   HEADER
   ============================================ */

.lc-dashboard-header {
    background: var(--secondary);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.lc-dashboard-header-top {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .lc-dashboard-header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.lc-welcome h1 {
    color: var(--primary);
    font-size: var(--font-size-xxl);
    margin: 0 0 var(--spacing-xs) 0;
    font-family: 'DM Serif Display', serif;
}

.lc-welcome p {
    color: var(--text);
    margin: 0;
}

.lc-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    position: relative;
}

/* ============================================
   BUTTONS
   ============================================ */

.lc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    text-decoration: none;
    min-height: 44px;
    transition: all var(--transition-normal) ease;
}

.lc-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(226, 196, 142, 0.3);
}

.lc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

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

.lc-btn-secondary:hover {
    background: var(--primary);
    color: var(--dark);
}

.lc-btn-small {
    padding: 8px 16px;
    font-size: var(--font-size-xs);
    min-height: 36px;
}

.lc-btn-block {
    width: 100%;
}

/* ============================================
   NOTIFICATION BADGE
   ============================================ */

.lc-notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: var(--font-size-xs);
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================
   STATS GRID
   ============================================ */

.lc-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 576px) {
    .lc-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.lc-stat-card {
    background: var(--secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary);
    transition: transform var(--transition-normal) ease;
}

.lc-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.lc-stat-label {
    display: block;
    color: var(--text);
    font-size: var(--font-size-xs);
    margin-bottom: var(--spacing-xs);
}

.lc-stat-value {
    display: block;
    color: var(--primary);
    font-size: var(--font-size-xl);
    font-weight: bold;
}

/* ============================================
   SECTION HEADER
   ============================================ */

.lc-section-header {
    background: var(--secondary);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.lc-section-header h2 {
    color: var(--primary);
    font-size: var(--font-size-xl);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.lc-section-header i {
    color: var(--primary);
}

/* ============================================
   PROPERTIES LIST
   ============================================ */

.lc-properties-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* ============================================
   PROPERTY CARD - NUEVA VERSIÓN COMPACTA
   ============================================ */

.lc-property-item {
    background: var(--secondary);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal) ease;
}

.lc-property-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.lc-property-summary {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.lc-property-summary-main {
    flex: 1 1 auto;
    min-width: 0;
}

.lc-property-item-image-thumb {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border-radius: 10px;
    overflow: hidden;
}

.lc-property-item-image-thumb img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    display: block;
}

.lc-property-item-title {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: var(--font-size-lg);
}

.lc-property-address {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
}

.lc-property-address i {
    color: var(--primary);
    flex: 0 0 auto;
}

.lc-property-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text);
}

.lc-property-item-meta i {
    color: var(--primary);
    margin-right: 4px;
}

.lc-property-status {
    margin-bottom: var(--spacing-md);
}

.lc-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.lc-status.approved {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.lc-status.pending {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
    border: 1px solid #FFC107;
}

.lc-status.rejected {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.lc-property-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   CALENDAR SECTION
   ============================================ */

.lc-calendar-container {
    background: var(--secondary);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.lc-calendar-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .lc-calendar-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.lc-calendar-header h3 {
    color: var(--primary);
    margin: 0 0 var(--spacing-xs) 0;
    font-size: var(--font-size-lg);
}

.lc-calendar-header p {
    color: var(--text);
    margin: 0;
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.lc-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.lc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-xs);
    color: var(--text);
}

.lc-legend-item span {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.lc-host-property-calendar {
    min-height: 350px;
    background: var(--dark);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm);
}

/* FullCalendar custom styles */
.lc-dashboard-host-page .fc {
    background: var(--dark);
    color: var(--text);
    font-size: var(--font-size-sm);
}

.lc-dashboard-host-page .fc th {
    color: var(--primary);
    padding: var(--spacing-sm) 0;
    font-weight: 600;
}

.lc-dashboard-host-page .fc td {
    border-color: rgba(226, 196, 142, 0.2);
}

.lc-dashboard-host-page .fc .fc-toolbar-title {
    color: var(--primary);
    font-size: var(--font-size-lg);
}

.lc-dashboard-host-page .fc-button {
    background: var(--secondary) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    padding: 6px 12px !important;
    font-size: var(--font-size-sm) !important;
    transition: all var(--transition-normal) ease;
}

.lc-dashboard-host-page .fc-button:hover {
    background: var(--primary) !important;
    color: var(--dark) !important;
    transform: translateY(-1px);
}

.lc-dashboard-host-page .fc-day-today {
    background: rgba(226, 196, 142, 0.1) !important;
}

.lc-dashboard-host-page .fc-daygrid-day-number {
    color: var(--text);
    font-size: var(--font-size-sm);
}

.lc-dashboard-host-page .fc-event {
    opacity: 0.3;
}

/* ============================================
   iCal FORM
   ============================================ */

.lc-ical-dashboard-form .lc-form-group {
    margin-bottom: var(--spacing-sm);
}

.lc-ical-dashboard-form input[type="url"] {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--dark);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-sm);
    color: var(--text);
    font-size: var(--font-size-sm);
}

.lc-ical-dashboard-form input[type="url"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(226, 196, 142, 0.2);
}

/* LC_VIDEO_HOSTS_V2 — campos de vídeo del hotel en el estilo oscuro del sitio
   (antes salían con el input blanco por defecto del navegador). */
.lc-hotel-video-input {
    width: 100%;
    padding: var(--spacing-sm) 12px;
    background: var(--dark);
    border: 1px solid rgba(226, 196, 142, 0.5);
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    font-size: var(--font-size-sm);
    box-sizing: border-box;
}

.lc-hotel-video-input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.lc-hotel-video-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(226, 196, 142, 0.2);
}

/* ============================================
   PRICING PANEL - NUEVA VERSIÓN
   ============================================ */

.lc-dashboard-pricing-form {
    display: block;
}

.lc-dashboard-pricing-message {
    display: none;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.lc-dashboard-pricing-message.is-success,
.lc-dashboard-pricing-message.is-error {
    display: block;
}

.lc-dashboard-pricing-message.is-success {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.35);
    color: #9BE7A6;
}

.lc-dashboard-pricing-message.is-error {
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.35);
    color: #FFB3BA;
}

.lc-dashboard-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.lc-dashboard-pricing-form .lc-season-dates {
    margin-top: 8px;
}

.lc-dashboard-pricing-form .lc-season-dates small,
.lc-dashboard-pricing-form .lc-note {
    display: block;
    margin-top: 8px;
    color: var(--text);
    opacity: 0.9;
}

.lc-dashboard-pricing-form .lc-row {
    display: flex;
    gap: 12px;
}

.lc-dashboard-pricing-form .lc-col {
    flex: 1 1 0;
    min-width: 0;
}

.lc-dashboard-weekend-group {
    margin-bottom: 16px;
}

.lc-dashboard-pricing-form .lc-save-prices {
    min-width: 220px;
}

@media (max-width: 767px) {
    .lc-dashboard-pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   TEMPORARY CLOSURES
   ============================================ */

.lc-temporary-closure-panel {
    margin-top: var(--spacing-md);
}

.lc-closure-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

@media (min-width: 768px) {
    .lc-closure-form .form-row {
        grid-template-columns: 1fr 1fr 1fr auto;
        align-items: end;
    }
}

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

.lc-closure-form label {
    color: var(--primary);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.lc-select,
.lc-input {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--dark);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-sm);
    color: var(--text);
    font-size: var(--font-size-sm);
}

.lc-select:focus,
.lc-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(226, 196, 142, 0.2);
}

.lc-closures-list {
    margin-top: var(--spacing-md);
}

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

.lc-closure-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--dark);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-xs);
}

.lc-closure-dates {
    color: var(--primary);
    font-weight: 600;
    min-width: 150px;
}

.lc-closure-reason {
    flex: 1;
    color: var(--text);
}

.lc-delete-closure {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: all var(--transition-normal) ease;
}

.lc-delete-closure:hover {
    transform: scale(1.1);
    color: #ff6b6b;
}

/* ============================================
   NOTIFICATIONS LIST
   ============================================ */

.lc-notifications-list {
    max-height: 400px;
    overflow-y: auto;
    background: var(--secondary);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-md);
}

.lc-notification-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(226, 196, 142, 0.2);
    cursor: pointer;
    transition: all var(--transition-normal) ease;
}

.lc-notification-item:hover {
    background: rgba(226, 196, 142, 0.1);
}

.lc-notification-item.unread {
    background: rgba(226, 196, 142, 0.05);
    border-left: 3px solid var(--primary);
}

.lc-notification-item:last-child {
    border-bottom: none;
}

.lc-notification-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

.lc-notification-title {
    color: var(--primary);
    font-weight: 600;
}

.lc-notification-date {
    color: var(--text);
    font-size: var(--font-size-xs);
    opacity: 0.7;
}

.lc-notification-message {
    color: var(--text);
    font-size: var(--font-size-sm);
}

/* ============================================
   MESSAGES
   ============================================ */

.lc-success,
.lc-error {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.lc-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.lc-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.lc-success i,
.lc-error i {
    font-size: var(--font-size-lg);
}

#lc-message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    display: none;
}



/* ============================================
   MOBILE MENU
   ============================================ */

.lc-mobile-menu-toggle {
    display: none;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-lg);
    cursor: pointer;
    margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
    .lc-mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: var(--spacing-sm);
    }
}

.lc-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

.lc-dashboard-host-page.menu-open .lc-header-actions {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--secondary);
    z-index: 9999;
    flex-direction: column;
    padding: var(--spacing-xl) var(--spacing-lg);
    transform: translateX(0);
    transition: transform var(--transition-normal) ease;
    border-left: 1px solid var(--primary);
}

@media (max-width: 768px) {
    .lc-header-actions {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--secondary);
        z-index: 9999;
        flex-direction: column;
        padding: var(--spacing-xl) var(--spacing-lg);
        transform: translateX(100%);
        transition: transform var(--transition-normal) ease;
        border-left: 1px solid var(--primary);
    }
    
    .lc-dashboard-host-page.menu-open .lc-header-actions {
        transform: translateX(0);
    }
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.lc-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl);
}

.lc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--secondary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   NO DATA
   ============================================ */

.lc-no-data {
    text-align: center;
    color: var(--text);
    padding: var(--spacing-xl);
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .lc-dashboard-host-page {
        padding: var(--spacing-sm);
    }
    
    .lc-property-item {
        padding: var(--spacing-md);
    }
    
    .lc-property-item-actions {
        flex-direction: column;
    }
    
    .lc-property-item-actions .lc-btn {
        width: 100%;
    }
    
    .lc-map-coordinates {
        grid-template-columns: 1fr;
    }
    
    .lc-dashboard-map {
        height: 250px;
    }
    
    .lc-calendar-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lc-calendar-legend {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .lc-property-item-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .lc-stats-grid {
        grid-template-columns: 1fr;
    }
    
    #lc-message-container {
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .lc-dashboard-host-page {
        background: white;
        color: black;
    }
    
    .lc-btn,
    .lc-map-toggle-btn,
    .lc-header-actions {
        display: none !important;
    }
}

/* ============================================
   ADD PROPERTY / EDIT PROPERTY
   MOBILE FIRST
   ============================================ */

.lc-add-property-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--spacing-md);
    background: var(--dark);
    color: var(--text);
    border-radius: var(--border-radius-lg);
}

.lc-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-lg);
    color: var(--primary);
    font-size: clamp(24px, 4vw, 32px);
}

.lc-property-form-frontend {
    display: block;
}

.lc-section {
    background: var(--secondary);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.lc-section h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lc-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.lc-col {
    flex: 1 1 100%;
    padding: 0 10px;
    min-width: 0;
}

.lc-form-group {
    margin-bottom: var(--spacing-md);
}

.lc-form-group label,
.lc-terms-label {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
}

.lc-form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.lc-form-group select,
.lc-form-group textarea {
    width: 100%;
    padding: 14px;
    background: var(--dark) !important;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    color: var(--text) !important;
    font-size: 16px;
    transition: all var(--transition-fast) ease;
    -webkit-appearance: none;
    appearance: none;
}
.lc-form-group input:-webkit-autofill,
.lc-form-group input:-webkit-autofill:hover,
.lc-form-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--dark, #0B1014) inset !important;
    -webkit-text-fill-color: var(--text, #C2C2C2) !important;
}

/* Opciones del desplegable en el estilo oscuro del sitio: antes el navegador
   pintaba la LISTA con fondo BLANCO y el texto claro heredado → blanco sobre blanco
   («Nivel de confort», tipo de cama/vista… no se veían al desplegar). */
.lc-form-group select option {
    background-color: #2b2f36;
    color: #ffffff;
}

.lc-form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.lc-form-group select:focus,
.lc-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(226, 196, 142, 0.2);
}

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

.lc-checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.lc-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--text);
}

.lc-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.lc-help-text,
.lc-text-small {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.lc-optional {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.6;
    margin-left: 4px;
}

.lc-field-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted, #aaa);
    margin-top: 4px;
    line-height: 1.4;
}



/* ── Checkbox pills for Baños / Aseos ── */
.lc-checkbox-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.lc-cb-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-light, #e0e0e0);
    transition: border-color .15s, background .15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 36px;
}

.lc-cb-pill input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border: 2px solid #555;
    border-radius: 3px;
    background: #222;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: border-color .15s, background .15s;
}

.lc-cb-pill input[type="checkbox"]:checked {
    background: #2a2a2a;
    border-color: var(--lc-accent, #E2C48E);
}

.lc-cb-pill input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 4px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.lc-cb-pill--on,
.lc-cb-pill:has(input:checked) {
    border-color: var(--lc-accent, #E2C48E);
    background: rgba(226, 196, 142, 0.10);
}

.lc-col--wide {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ── Golden SVG icons for section headers ── */
.lc-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--lc-accent, #E2C48E);
    animation: lc-icon-gold 3s ease-in-out infinite;
}

.lc-svg-icon svg {
    display: block;
    fill: currentColor;
}

@keyframes lc-icon-gold {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(226,196,142,.35));
        color: #E2C48E;
    }
    50% {
        filter: drop-shadow(0 0 7px rgba(248,220,160,.9));
        color: #F8DC9A;
    }
}

/* Ad zone placeholder in publish form */
.lc-add-prop-ad-zone {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.lc-file-upload {
    position: relative;
    border: 2px dashed var(--primary);
    border-radius: var(--border-radius-md);
    background: rgba(226, 196, 142, 0.06);
    padding: var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.lc-file-upload:hover {
    background: rgba(226, 196, 142, 0.12);
}

.lc-file-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.lc-photos-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: var(--spacing-md);
}

.lc-photos-preview img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.lc-terms-section {
    margin-top: var(--spacing-sm);
}

.lc-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
}

.lc-terms-label input {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.lc-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 14px 20px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
}

.lc-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* tablet+ */
@media (min-width: 768px) {
    .lc-add-property-wrapper {
        padding: var(--spacing-lg);
    }

    .lc-col {
        flex: 1 1 50%;
    }

    .lc-photos-preview {
        grid-template-columns: repeat(4, 1fr);
    }

    .lc-submit-btn {
        width: auto;
        min-width: 260px;
    }
}

/* very small screens */
@media (max-width: 480px) {
    .lc-add-property-wrapper {
        padding: var(--spacing-sm);
    }

    .lc-section {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .lc-page-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .lc-section h3 {
        font-size: 18px;
    }

    .lc-form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    .lc-form-group select,
    .lc-form-group textarea {
        padding: 12px;
    }

    .lc-photos-preview {
        grid-template-columns: 1fr 1fr;
    }
}
/* ============================================
   EDIT AMENITIES
   MOBILE FIRST
   ============================================ */

.lc-amenities-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.lc-amenities-wrapper h2 {
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
    font-family: 'DM Serif Display', serif;
    font-size: clamp(22px, 4vw, 32px);
    line-height: 1.2;
}

.lc-amenities-form {
    display: block;
}

.lc-amenities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: var(--spacing-lg);
    background: var(--secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--primary);
}

.lc-amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px;
    background: var(--dark);
    border: 1px solid rgba(226, 196, 142, 0.18);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.lc-amenity-item:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    border-color: var(--primary);
}

.lc-amenity-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.lc-amenity-item span {
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.lc-amenities-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: var(--spacing-md);
}

.lc-amenities-actions .lc-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
}

#lc-message {
    margin-bottom: var(--spacing-md);
}

/* tablet */
@media (min-width: 768px) {
    .lc-amenities-wrapper {
        padding: var(--spacing-lg);
    }

    .lc-amenities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        padding: 20px;
    }

    .lc-amenities-actions {
        flex-direction: row;
        justify-content: center;
    }

    .lc-amenities-actions .lc-btn {
        width: auto;
        min-width: 220px;
    }
}

/* desktop */
@media (min-width: 1100px) {
    .lc-amenities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* very small screens */
@media (max-width: 480px) {
    .lc-amenities-wrapper {
        padding: var(--spacing-sm);
    }

    .lc-amenities-grid {
        padding: var(--spacing-sm);
        gap: 10px;
    }

    .lc-amenity-item {
        padding: 10px;
    }

    .lc-amenity-item span {
        font-size: 13px;
    }
}
.lc-property-item-image-thumb {
    position: relative;
}

.lc-property-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(226, 196, 142, 0.9);
    color: #0B1014;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}



/* LC_PHOTO_REMOVE_V1 (2026-07-10): quitar una foto elegida por error del
   preview ANTES de subirla (form hotel — botón × sobre cada miniatura). */
.lc-photo-preview-item { position: relative; }
.lc-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(11, 16, 20, 0.82);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, transform 0.15s;
}
.lc-photo-remove:hover {
    background: #a33a3a;
    transform: scale(1.12);
}

/* ── LC_COVER_PHOTO_V1: foto de PORTADA (form hotel) ─────── */
.lc-photo-preview-item{position:relative;transition:border-color .15s;}
/* Big obvious hint above the hotel gallery thumbnails */
.lc-cover-hint{
    display:block;margin:0 0 10px;padding:11px 14px;border-radius:10px;
    background:rgba(226,196,142,.14);border:1px dashed #E2C48E;color:#E2C48E;
    font-weight:800;font-size:.92rem;line-height:1.4;
}
/* Selected cover: thick gold frame + big "★ PORTADA" ribbon */
.lc-photo-preview-item.is-cover,
.lc-photo-preview-item:has(.lc-photo-cover-pick input:checked){
    outline:3px solid #E2C48E;outline-offset:0;border-radius:8px;box-shadow:0 0 0 3px rgba(226,196,142,.5);
}
.lc-photo-preview-item.is-cover::before,
.lc-photo-preview-item:has(.lc-photo-cover-pick input:checked)::before{
    content:"\2605 PORTADA";position:absolute;top:8px;left:8px;z-index:4;
    background:#E2C48E;color:#1a1f24;font-weight:900;font-size:.76rem;letter-spacing:.5px;
    padding:5px 10px;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.45);pointer-events:none;
}
/* Pick button: full-width bottom bar, big and obvious */
.lc-photo-cover-pick{
    position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:6px;
    padding:9px 6px;background:rgba(0,0,0,.62);color:#E2C48E;border-top:2px solid #E2C48E;
    border-radius:0 0 8px 8px;font-size:.8rem;font-weight:800;text-transform:uppercase;
    letter-spacing:.3px;cursor:pointer;
}
.lc-photo-cover-pick:hover{background:#E2C48E;color:#1a1f24;}
.lc-photo-cover-pick input{position:absolute;opacity:0;width:0;height:0;}
.lc-photo-cover-pick span{pointer-events:none;}
.lc-photo-preview-item:has(.lc-photo-cover-pick input:checked) .lc-photo-cover-pick{background:#E2C48E;color:#1a1f24;}
.lc-photo-star{
    position:absolute;top:5px;left:5px;width:30px;height:30px;border:none;border-radius:50%;
    background:rgba(0,0,0,.7);color:#E2C48E;cursor:pointer;font-size:16px;line-height:1;z-index:3;
}
.lc-photo-star:hover{background:#E2C48E;color:#1a1f24;}
.lc-photo-cover-badge{
    position:absolute;bottom:5px;left:5px;padding:4px 9px;border-radius:8px;z-index:4;
    background:#E2C48E;color:#1a1f24;font-size:.72rem;font-weight:900;letter-spacing:.5px;
    box-shadow:0 2px 8px rgba(0,0,0,.4);
}
