/* Ocelot Nomadic Booking System CSS */

:root {
    --ocelot-bg: #080B11;
    --ocelot-card-bg: rgba(17, 22, 34, 0.65);
    --ocelot-card-border: rgba(255, 255, 255, 0.08);
    --ocelot-text: #F3F4F6;
    --ocelot-text-muted: #9CA3AF;
    --ocelot-cyan: #06B6D4;
    --ocelot-cyan-glow: rgba(6, 182, 212, 0.15);
    --ocelot-green: #10B981;
    --ocelot-green-glow: rgba(16, 185, 129, 0.15);
    --ocelot-purple: #8B5CF6;
    --ocelot-font-main: 'Inter', sans-serif;
    --ocelot-font-display: 'Outfit', sans-serif;
}

.ocelot-search-app-container {
    font-family: var(--ocelot-font-main);
    color: var(--ocelot-text);
    background-color: var(--ocelot-bg);
    border-radius: 24px;
    border: 1px solid var(--ocelot-card-border);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Header */
.ocelot-app-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ocelot-badge {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--ocelot-cyan);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.ocelot-app-header h2 {
    font-family: var(--ocelot-font-display);
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #FFFFFF, var(--ocelot-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ocelot-app-header p {
    color: var(--ocelot-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Search Bar */
.ocelot-search-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) 150px;
    gap: 1rem;
    background: var(--ocelot-card-bg);
    border: 1px solid var(--ocelot-card-border);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.ocelot-search-bar .input-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ocelot-search-bar label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ocelot-text-muted);
}

.ocelot-search-bar select,
.ocelot-search-bar input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ocelot-card-border);
    color: var(--ocelot-text);
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
}

.ocelot-search-bar select:focus,
.ocelot-search-bar input:focus {
    border-color: var(--ocelot-cyan);
    box-shadow: 0 0 10px var(--ocelot-cyan-glow);
}

.ocelot-search-bar .search-btn {
    background: linear-gradient(135deg, var(--ocelot-cyan), var(--ocelot-purple));
    border: none;
    color: #FFF;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: flex-end;
    height: 42px;
}

.ocelot-search-bar .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

/* Split Viewport */
.ocelot-split-viewport {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    min-height: 600px;
}

@media (max-width: 991px) {
    .ocelot-split-viewport {
        grid-template-columns: 1fr;
    }
}

.ocelot-results-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

/* Loader */
.ocelot-loading-overlay {
    background: rgba(8, 11, 17, 0.9);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-radius: 20px;
}

.ocelot-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(6, 182, 212, 0.1);
    border-top: 3px solid var(--ocelot-cyan);
    border-radius: 50%;
    animation: ocelot-spin 1s linear infinite;
}

@keyframes ocelot-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Feed & Cards */
.ocelot-results-feed {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 650px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.ocelot-results-feed::-webkit-scrollbar {
    width: 6px;
}
.ocelot-results-feed::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.ocelot-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--ocelot-card-bg);
    border: 1px solid var(--ocelot-card-border);
    border-radius: 20px;
}

.ocelot-empty-state .empty-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
}

.ocelot-empty-state h3 {
    font-family: var(--ocelot-font-display);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.ocelot-empty-state p {
    color: var(--ocelot-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Hotel Card */
.ocelot-hotel-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    background: var(--ocelot-card-bg);
    border: 1px solid var(--ocelot-card-border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.ocelot-hotel-card:hover,
.ocelot-hotel-card.active {
    border-color: var(--ocelot-cyan);
    box-shadow: 0 0 20px var(--ocelot-cyan-glow);
    transform: translateY(-2px);
}

.ocelot-hotel-card.active {
    border-color: var(--ocelot-green);
    box-shadow: 0 0 20px var(--ocelot-green-glow);
}

@media (max-width: 576px) {
    .ocelot-hotel-card {
        grid-template-columns: 1fr;
    }
}

.ocelot-card-img {
    height: 100%;
    min-height: 140px;
    background-size: cover;
    background-position: center;
}

.ocelot-card-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ocelot-card-top h4 {
    font-family: var(--ocelot-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.ocelot-card-top .room-desc {
    font-size: 0.85rem;
    color: var(--ocelot-text-muted);
    margin: 0 0 0.5rem 0;
}

.ocelot-card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--ocelot-text-muted);
}

.ocelot-card-meta span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.ocelot-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.ocelot-card-price {
    display: flex;
    flex-direction: column;
}

.ocelot-card-price .price-num {
    font-family: var(--ocelot-font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ocelot-green);
}

.ocelot-card-price .price-note {
    font-size: 0.7rem;
    color: var(--ocelot-text-muted);
}

.ocelot-card-actions {
    display: flex;
    gap: 0.5rem;
}

.ocelot-card-actions button {
    border: 1px solid var(--ocelot-card-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ocelot-text);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.ocelot-card-actions button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ocelot-card-actions button.book-action-btn {
    background: var(--ocelot-green);
    border: none;
    color: #FFF;
}

.ocelot-card-actions button.book-action-btn:hover {
    background: #059669;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* API Developer Console */
.ocelot-api-console {
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid var(--ocelot-card-border);
    border-radius: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    overflow: hidden;
}

.ocelot-api-console .console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161b22;
    padding: 0.6rem 1rem;
    font-weight: bold;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--ocelot-card-border);
}

.ocelot-api-console .status-indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ocelot-api-console .status-indicator::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ocelot-text-muted);
}

.ocelot-api-console .status-indicator.live {
    color: var(--ocelot-green);
}
.ocelot-api-console .status-indicator.live::before {
    background: var(--ocelot-green);
    box-shadow: 0 0 8px var(--ocelot-green);
    animation: console-pulse 1.5s infinite;
}

@keyframes console-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.ocelot-api-console .console-body {
    padding: 1rem;
}

.ocelot-api-console .console-query {
    color: var(--ocelot-cyan);
    margin-bottom: 0.75rem;
    word-break: break-all;
}

.ocelot-api-console .console-json {
    color: #88F4FF;
    max-height: 180px;
    overflow-y: auto;
    white-space: pre-wrap;
    margin: 0;
    line-height: 1.4;
}

.ocelot-api-console .console-json::-webkit-scrollbar {
    width: 4px;
}
.ocelot-api-console .console-json::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

/* Map Panel */
.ocelot-map-panel {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--ocelot-card-border);
    height: 650px;
    position: sticky;
    top: 100px;
    z-index: 5;
}

#ocelot-property-map {
    width: 100%;
    height: 100%;
    background: #0d1117;
}

/* Leaflet Dark Theme Overrides */
.leaflet-container {
    background: #0d1117 !important;
}

.leaflet-tile {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.leaflet-bar a {
    background-color: #161b22 !important;
    color: var(--ocelot-text) !important;
    border-bottom: 1px solid var(--ocelot-card-border) !important;
}

.leaflet-bar a:hover {
    background-color: #30363d !important;
}

.leaflet-popup-content-wrapper {
    background: #111622 !important;
    color: var(--ocelot-text) !important;
    border: 1px solid var(--ocelot-cyan) !important;
    border-radius: 12px !important;
    padding: 0.25rem !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2) !important;
}

.leaflet-popup-tip {
    background: #111622 !important;
    border-left: 1px solid var(--ocelot-cyan) !important;
    border-bottom: 1px solid var(--ocelot-cyan) !important;
}

.leaflet-popup-close-button {
    color: var(--ocelot-text-muted) !important;
    top: 5px !important;
    right: 5px !important;
}

.ocelot-map-popup {
    padding: 0.25rem;
}

.ocelot-map-popup h5 {
    font-family: var(--ocelot-font-display);
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
    color: var(--ocelot-text);
}

.ocelot-map-popup p {
    font-size: 0.75rem;
    color: var(--ocelot-text-muted);
    margin: 0 0 0.5rem 0;
}

.ocelot-map-popup .popup-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ocelot-map-popup .popup-price {
    font-weight: bold;
    color: var(--ocelot-green);
    font-size: 0.9rem;
}

.ocelot-map-popup .popup-btn {
    background: var(--ocelot-green);
    border: none;
    color: #FFF;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.ocelot-map-popup .popup-btn:hover {
    background: #059669;
}

/* Modals */
.ocelot-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.ocelot-modal-content {
    background: #111622;
    border: 1px solid var(--ocelot-card-border);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 2.25rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: ocelot-modal-fade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ocelot-modal-fade {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ocelot-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: var(--ocelot-text-muted);
    cursor: pointer;
    line-height: 1;
}

.ocelot-modal-close:hover {
    color: var(--ocelot-text);
}

.ocelot-modal-content h3 {
    font-family: var(--ocelot-font-display);
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
}

.ocelot-modal-content p {
    color: var(--ocelot-text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
}

.modal-pricing-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.modal-pricing-box .price-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-pricing-box .price-val {
    font-family: var(--ocelot-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ocelot-green);
}

.modal-pricing-box .modal-pricing-note {
    width: 100%;
    margin: 0.25rem 0 0 0;
    font-size: 0.7rem;
    color: var(--ocelot-text-muted);
}

.ocelot-modal .form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ocelot-modal .form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ocelot-text-muted);
}

.ocelot-modal .form-group input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--ocelot-card-border);
    color: var(--ocelot-text);
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
}

.ocelot-modal .form-group input:focus {
    border-color: var(--ocelot-cyan);
    box-shadow: 0 0 10px var(--ocelot-cyan-glow);
}

.form-terms {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-terms p {
    font-size: 0.7rem !important;
    line-height: 1.4;
    color: var(--ocelot-text-muted);
    margin: 0 !important;
}

.modal-submit-btn {
    background: linear-gradient(135deg, var(--ocelot-green), #059669);
    border: none;
    color: #FFF;
    padding: 0.8rem;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.25);
}

.modal-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}
