/* Classic Website Enhancements */

/* Classic Typography Enhancements */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* Override body font for more classic feel */
body {
    font-family: 'Crimson Text', 'Times New Roman', serif;
    color: #2d3748;
    line-height: 1.7;
    font-size: 16px;
}

/* Classic headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 600;
    color: #1a365d;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2rem;
    border-bottom: 3px solid #B8860B;
    padding-bottom: 10px;
    display: inline-block;
}

/* Classic Navigation Enhancements */
.mega-menu {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #B8860B;
}

/* Override any conflicting styles from main CSS */
.primary-header .mega-menu section.menu-list-items {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%) !important;
}

.mega-menu .menu-links > li > a {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 18px 25px;
    transition: all 0.3s ease;
    color: #1a1a1a !important;
    border-right: 1px solid rgba(184, 134, 11, 0.3);
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.mega-menu .menu-links > li:last-child > a {
    border-right: none;
}

.mega-menu .menu-links > li > a:hover {
    background: linear-gradient(135deg, #B8860B 0%, #8B7355 100%);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ensure navigation text is always visible */
.primary-header .mega-menu .menu-links > li > a {
    color: #1a1a1a !important;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

/* Classic Logo Styling */
.menu-logo img {
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.menu-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5));
}

/* Classic Header Top */
.header-top {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #1a365d 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #B8860B;
    padding: 8px 0;
}

.header-top ul li a {
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.header-top ul li a:hover {
    color: #B8860B;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Classic Main Search Section */
.main-search {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.95) 0%, rgba(44, 82, 130, 0.95) 100%);
    border-bottom: 4px solid #B8860B;
    padding: 60px 0;
    position: relative;
}

.main-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(184,134,11,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(184,134,11,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(184,134,11,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(184,134,11,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(184,134,11,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.main-search-title h1 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.main-search-title p {
    color: #B8860B;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* Classic Search Form */
.search-section {
    position: relative;
    z-index: 2;
}

.search-options {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 2px solid #B8860B;
}

/* Enhanced Responsive Search Form */
.search-section .search-options {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 2px solid #B8860B;
    margin: 0;
}

/* Override old float-based styles from style.css */
.search-section .search-options > li {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    list-style: none !important;
}

.search-section .search-options .form-group {
    margin-bottom: 15px;
}

.search-section .search-options .form-group:last-child {
    margin-bottom: 15px;
}

.search-section .search-options input,
.search-section .search-options select {
    width: 100%;
    height: 55px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 0;
    font-size: 16px;
    background: #fff;
    transition: all 0.3s ease;
}

.search-section .search-options input:focus,
.search-section .search-options select:focus {
    border-color: #B8860B;
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.2);
    outline: none;
}

.search-section .search-options .btn {
    height: 55px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
}

.search-section .search-options .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Force Bootstrap grid to work properly */
.search-section .search-options .row {
    margin: 0;
    display: block;
}

.search-section .search-options .row::after {
    content: "";
    display: table;
    clear: both;
}

/* Ensure proper column behavior */
.search-section .search-options [class*="col-"] {
    float: left;
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Responsive Design for Search Form */
@media (max-width: 991px) {
    .search-section .search-options {
        padding: 20px;
    }
    
    .search-section .search-options .col-md-3 {
        width: 25%;
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .search-section .search-options {
        padding: 15px;
        margin: 0 10px;
    }
    
    .search-section .search-options .col-sm-6 {
        width: 50% !important;
        float: left !important;
        margin-bottom: 15px;
    }
    
    .search-section .search-options .col-sm-6:last-child {
        margin-bottom: 0;
    }
    
    .search-section .search-options input,
    .search-section .search-options select {
        height: 50px;
        font-size: 14px;
    }
    
    .search-section .search-options .btn {
        height: 50px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .search-section .search-options {
        padding: 10px;
        margin: 0 5px;
    }
    
    .search-section .search-options .col-xs-12 {
        width: 100% !important;
        float: none !important;
    }
    
    .search-section .search-options input,
    .search-section .search-options select {
        height: 45px;
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .search-section .search-options .btn {
        height: 45px;
        font-size: 14px;
    }
}

/* Classic Cards */
.white.category-grid-box-1 {
    border-radius: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.white.category-grid-box-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #B8860B 100%);
}

.white.category-grid-box-1:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: #B8860B;
}

.white.category-grid-box-1 .image img {
    transition: all 0.3s ease;
}

.white.category-grid-box-1:hover .image img {
    transform: scale(1.05);
}

/* Classic Featured Ribbon */
.featured-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.featured-ribbon span {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #B8860B 100%);
    color: #fff;
    padding: 10px 25px;
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
}

/* Classic Footer */
.footer-bg {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #fff;
    border-top: 4px solid #B8860B;
    position: relative;
}

.footer-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #B8860B 50%, transparent 100%);
}

.footer-top .widget h5 {
    color: #B8860B;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-top .widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #B8860B;
}

.footer-top .widget ul li a {
    color: #e2e8f0;
    transition: all 0.3s ease;
    font-family: 'Crimson Text', serif;
    font-size: 16px;
    line-height: 1.8;
}

.footer-top .widget ul li a:hover {
    color: #B8860B;
    padding-left: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Classic Statistics */
.funfacts {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.1) 0%, rgba(44, 82, 130, 0.1) 100%);
    border: 3px solid #B8860B;
    border-radius: 0;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.funfacts::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.funfacts .icons i {
    color: #B8860B;
    font-size: 60px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.funfacts .number {
    color: #1a365d;
    font-size: 42px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.funfacts h4 {
    color: #1a365d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
    margin-top: 15px;
}

/* Classic Buttons */
.btn-theme {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #B8860B 100%);
    border: 2px solid #B8860B;
    border-radius: 0;
    padding: 15px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.btn-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-theme:hover::before {
    left: 100%;
}

.btn-theme:hover {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 50%, #8B7355 100%);
    border-color: #8B7355;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Classic Scroll to Top */
.cd-top {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #B8860B 100%);
    border: 2px solid #B8860B;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: fixed !important;
    bottom: 40px !important;
    right: 20px !important;
    height: 40px !important;
    width: 40px !important;
    overflow: visible;
    text-indent: 0;
    white-space: normal;
    z-index: 999 !important;
}

.cd-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid #fff;
    z-index: 2;
}

.cd-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.cd-top:hover::before {
    border-bottom-color: #fff;
}

/* Classic Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 0;
    padding: 15px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.breadcrumb a {
    color: #1a365d;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #B8860B;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Classic Pagination */
.pagination > li > a {
    color: #1a365d;
    border: 2px solid #e2e8f0;
    border-radius: 0;
    margin: 0 3px;
    padding: 12px 16px;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
    transition: all 0.3s ease;
}

.pagination > li > a:hover {
    background-color: #B8860B;
    border-color: #B8860B;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pagination > .active > a {
    background-color: #1a365d;
    border-color: #1a365d;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Classic Price Styling */
.ad-price {
    color: #B8860B;
    font-weight: 700;
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Classic Category Titles */
.category-title span {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #B8860B 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Classic Location Icons */
.location i {
    color: #B8860B;
    font-size: 16px;
    margin-right: 8px;
}

/* Classic Form Styling */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 0;
    padding: 15px 20px;
    font-size: 16px;
    font-family: 'Crimson Text', serif;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    border-color: #B8860B;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
    outline: none;
    background: #fff;
}

/* Classic Select Styling */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Classic Responsive Adjustments */
@media (max-width: 768px) {
    .main-search-title h1 {
        font-size: 2rem;
    }
    
    .funfacts .number {
        font-size: 32px;
    }
    
    .mega-menu .menu-links > li > a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Mobile positioning for back to top button */
    .cd-top {
        bottom: 20px !important;
        right: 15px !important;
        height: 45px !important;
        width: 45px !important;
    }
}

/* Classic Search Button Styling */
.search-section .search-options > li .btn.btn-danger {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #B8860B 100%);
    border: 2px solid #B8860B;
    border-radius: 0;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    height: 55px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-section .search-options > li .btn.btn-danger:hover {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 50%, #8B7355 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Ensure search button is properly aligned */
.search-section .search-options > li:last-child {
    display: flex;
    align-items: stretch;
}

.search-section .search-options > li:last-child .btn {
    width: 100%;
    height: 55px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
