:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #64748b;
    --bg-light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
    --glass-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: rgba(79, 70, 229, 0.15);
    background-color: var(--primary);
    color: var(--white);
}

/* Currency Selector Styling */
.currency-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.currency-selector:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--primary);
}

.currency-selector i {
    color: var(--primary);
    font-size: 1.1rem;
}

.currency-selector select {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.currency-selector select option {
    background: white;
    color: var(--text-main);
}

.hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #1e293b, #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.hotel-list-section {
    padding-bottom: 5rem;
}

.hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.hotel-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
}

.hotel-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.2);
}

.hotel-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.rating-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #f59e0b;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.live-status {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(4px);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.live-pulse {
    font-size: 0.65rem;
    color: #22c55e;
    font-weight: 800;
    margin-left: 0.3rem;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

.hotel-info {
    padding: 1.5rem;
    flex-grow: 1;
}

.hotel-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.hotel-name:hover {
    color: var(--primary);
}

.toggle-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.active .toggle-icon {
    transform: rotate(180deg);
}

.hotel-location {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

/* Dropdown styling */
.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.active .dropdown-content {
    max-height: 2000px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .comparison-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.price-comparison h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.price-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.price-list li {
    background: rgba(248, 250, 252, 0.8);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
}

.site-name {
    font-weight: 500;
}

.price-tag {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.view-btn {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.price-list li[data-site="Hotel Website"] {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.price-list li[data-site="Hotel Website"] .site-name {
    color: var(--primary);
    font-weight: 700;
}

.competitors-sidebar {
    background: rgba(79, 70, 229, 0.03);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(79, 70, 229, 0.2);
}

.competitors-sidebar h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comp-mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.comp-mini-list::-webkit-scrollbar {
    width: 4px;
}

.comp-mini-list::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.2);
    border-radius: 10px;
}

.comp-mini-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.comp-mini-item:last-child {
    border-bottom: none;
}

.comp-mini-name {
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.comp-mini-price {
    font-weight: 700;
    color: var(--text-main);
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close-modal:hover {
    color: var(--text-main);
}

.competitor-grid {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.competitor-item {
    background: var(--bg-light);
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.competitor-item:hover {
    transform: scale(1.02) translateX(10px);
    background: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.modal-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    display: block;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.market-leader-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.8rem;
}

.comp-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comp-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.competitor-item i {
    color: var(--primary);
}

.market-intelligence {
    padding: 3rem 0;
    margin-top: 2rem;
}

.intel-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 3rem;
    border-radius: var(--radius-lg);
    color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.intel-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.intel-header p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.intel-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border-left: 4px solid #4f46e5;
}

.intel-label {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.intel-value {
    font-size: 1.5rem;
    font-weight: 700;
}

footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Rate Shopper Section */
.rate-shopper-section {
    padding: 2rem 0 5rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.rate-shopper-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.rate-shopper-header {
    padding: 2rem;
    background: linear-gradient(135deg, #fff, #f8fafc);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rate-shopper-header h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.rate-shopper-header p {
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sync-badge {
    font-size: 0.75rem;
    background-color: rgba(34, 197, 94, 0.1);
    color: #059669;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-export {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-export:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.rate-shopper-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    table-layout: fixed;
    min-width: 1600px; /* Increased to accommodate new columns */
}

.rate-shopper-table th {
    background: linear-gradient(135deg, #f59e0b, #d97706); /* Premium Orange/Gold */
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 1.2rem 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.rate-shopper-table th:first-child {
    width: 220px;
    text-align: left;
    padding-left: 2rem;
}

.metric-header {
    width: 160px;
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    padding: 0 !important; /* Managed by wrapper */
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.th-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    height: 100%;
}

.th-wrapper i {
    font-size: 1.5rem;
    color: #4f46e5;
    opacity: 0.9;
}

.th-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.main-label {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
}

.sub-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.rate-shopper-table th.main-hotel-col {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    width: 180px;
    font-size: 1.1rem;
}

.rate-shopper-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

.metric-cell {
    font-weight: 600;
    font-size: 1.1rem;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
}

.visitor-count {
    color: #6366f1;
}

.booking-count {
    color: #10b981;
}

.rate-shopper-table tr:hover td {
    background-color: rgba(79, 70, 229, 0.02);
}

.rate-shopper-table .ota-name-cell {
    text-align: left;
    padding-left: 2rem;
    font-weight: 600;
    color: var(--text-main);
    background-color: #f8fafc;
    border-right: 2px solid rgba(0, 0, 0, 0.05);
}

.rate-shopper-table .main-hotel-col {
    background-color: rgba(79, 70, 229, 0.03);
    font-weight: 700;
}

.price-val {
    font-family: 'Outfit', sans-serif;
}

.price-lower {
    color: #059669;
    background-color: rgba(16, 185, 129, 0.05);
}

.price-higher {
    color: #dc2626;
    background-color: rgba(239, 68, 68, 0.05);
}

.price-lower .price-val::after {
    content: ' ↓';
    font-size: 0.8rem;
}

.price-higher .price-val::after {
    content: ' ↑';
    font-size: 0.8rem;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 1.2rem 0;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    
    .logo {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 1.2rem;
        border-top: 1px solid rgba(0,0,0,0.05);
        padding-top: 1rem;
    }
    
    nav a {
        font-size: 0.95rem;
        font-weight: 600;
        padding: 0.4rem 0.2rem;
        background: none; /* Removed background for cleaner look */
    }
    
    .currency-selector {
        width: auto;
        min-width: 130px;
        margin: 0;
    }
    
    .btn-primary {
        padding: 0.7rem 1.5rem;
        margin-left: auto;
    }

    /* Grouping Currency and Button on one row for compact feel */
    nav .currency-selector, 
    nav .btn-primary {
        flex: 0 0 auto;
    }
    
    .hero {
        padding: 2.5rem 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.7rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .hotel-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #search-results {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .hotel-image {
        height: 180px;
    }
    
    .rate-shopper-header h2 {
        font-size: 1.4rem;
    }
}

/* Search Box Styles */
.search-box {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-input-group i {
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

#hotel-search {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#hotel-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#hotel-search::placeholder {
    color: var(--text-muted);
}

#search-btn {
    min-width: 120px;
    white-space: nowrap;
}

#search-loading {
    color: var(--primary);
    font-weight: 500;
}

#search-error {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

#search-results-container {
    margin-top: 2rem;
    width: 100%;
}

#search-results-container h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

#search-results {
    display: block;
    width: 100%;
}

/* Search Result Card Styles */
.search-result-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
}

.search-result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.result-thumbnail {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}

.result-info {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.result-source {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.result-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.8rem 0;
}

.result-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    margin-bottom: 0.8rem;
}

.amenity-tag {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.search-result-card .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
}

/* Main Hotel Card for Search Results */
.search-result-main-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(79, 70, 229, 0.05) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
}

.search-result-main-card .result-thumbnail {
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary);
    overflow: hidden;
}

.search-result-main-card .rating-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0.5rem 0 1rem 0;
}

.search-result-main-card .btn-primary {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    font-weight: 600;
    padding: 1rem;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
}

.search-result-main-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

/* Competitors Table */
.competitors-table-container {
    margin-top: 2rem;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.competitors-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.competitors-table thead {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
}

.competitors-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--primary);
}

.competitors-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

.competitors-table tbody tr {
    transition: background-color 0.2s ease;
}

.competitors-table tbody tr:hover {
    background-color: rgba(79, 70, 229, 0.05);
}

.competitors-table tbody tr:last-child td {
    border-bottom: none;
}

.competitors-table .btn-small {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.4rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    cursor: pointer;
}

.competitors-table .btn-small:hover {
    background: #4f46c9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

/* Responsive Table */
@media (max-width: 768px) {
    .search-result-main-card {
        padding: 1.5rem;
    }
    
    .search-result-main-card > div {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 1.5rem !important;
    }
    
    .competitors-table th,
    .competitors-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .competitors-table {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }
    
    #search-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search-input-group {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    #hotel-search {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }
    
    #search-btn {
        width: 100%;
        padding: 0.6rem !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        gap: 1rem;
    }

    nav {
        gap: 0.8rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .currency-selector {
        padding: 0.3rem 0.6rem;
        gap: 0.3rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }
}
/* Search Matrix Table Styling - Professional Grid */
.search-matrix-wrapper {
    width: 100%;
    overflow-x: auto;
    background: white;
    margin-top: 1rem;
    position: relative;
    border: 2px solid #555;
    border-radius: 4px;
}

.search-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
    min-width: 1800px;
}

.search-matrix-table th, 
.search-matrix-table td {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd; /* Visible grid lines */
    text-align: center;
}

.search-matrix-table thead th {
    background: #f9cb9c; /* Peach header */
    position: sticky;
    top: 0;
    z-index: 20;
    color: black;
    font-weight: 700;
    border-bottom: 2px solid #777;
}

.ota-header-cell {
    background: #f9cb9c !important;
    text-align: left !important;
    padding-left: 1.5rem !important;
    position: sticky;
    left: 0;
    z-index: 30 !important;
    border-right: 2px solid #777 !important;
}

.ota-name-cell {
    background: #f8fafc;
    color: black;
    font-weight: 600;
    text-align: left !important;
    padding-left: 1.5rem !important;
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 2px solid #777 !important;
}

/* Zebra Striping */
.search-matrix-table tbody tr:nth-child(even) td:not(.ota-name-cell) {
    background-color: #fdfdfd;
}

.search-matrix-table tbody tr:hover td:not(.ota-name-cell) {
    background-color: #f1f5f9;
}

.hotel-th-name {
    font-size: 0.95rem;
    white-space: wrap;
    display: block;
    margin-bottom: 4px;
}

.orig-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.highlight-comp {
    background: #ffd966 !important; /* Yellow highlight */
}

.main-hotel-td {
    background: rgba(79, 70, 229, 0.03); /* Slight tint for main hotel column */
}

/* Lowest Price Highlight */
.lowest-price-match {
    background-color: #ecfdf5 !important;
    color: #065f46;
}

.lowest-price-match .matrix-price {
    font-weight: 800;
}

.matrix-price {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Summary Rows Styling */
.summary-row {
    background-color: #f1f5f9 !important;
    border-top: 2px solid #777 !important;
}

.summary-label {
    background-color: #e2e8f0 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.summary-row td {
    font-size: 1rem;
    color: var(--primary);
}
