/*
Theme Name: HotelForU Custom
Theme URI: https://www.hotelforu.net/
Author: HotelForU
Description: Custom lightweight WordPress theme for HotelForU.
Version: 1.0.0
Text Domain: hotelforu-custom
*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2937;
    background: #f7f8fa;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-brand a {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.main-nav .menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 15px;
    font-weight: 600;
}

.site-main {
    padding: 48px 0;
}

.site-footer {
    margin-top: 70px;
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    padding: 36px 0;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 64px;
        gap: 16px;
    }

    .site-brand a {
        font-size: 22px;
    }

    .main-nav .menu {
        gap: 14px;
        font-size: 14px;
    }

    .site-main {
        padding: 32px 0;
    }
}

.home-page {
    padding-top: 0;
}

.home-hero {
    background:
        linear-gradient(
            135deg,
            rgba(17, 24, 39, 0.92),
            rgba(30, 64, 175, 0.78)
        );
    color: #ffffff;
}

.hero-content {
    padding: 88px 0 82px;
    max-width: 720px;
}

.hero-eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    opacity: 0.82;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content > p:last-child {
    margin: 0;
    max-width: 620px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.86);
}

.home-section {
    padding: 60px 0 10px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hotel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.hotel-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hotel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.11);
}

.hotel-card-link {
    display: block;
    height: 100%;
}

.hotel-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e5e7eb;
}

.hotel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hotel-card:hover .hotel-card-image img {
    transform: scale(1.035);
}

.hotel-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
    font-weight: 700;
}

.hotel-card-body {
    padding: 18px;
}

.hotel-card-title {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.hotel-card-excerpt {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .hotel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-content {
        padding: 58px 0 54px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content > p:last-child {
        font-size: 16px;
    }

    .home-section {
        padding-top: 42px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .hotel-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hotel-card-body {
        padding: 16px;
    }
}

.single-hotel {
    padding-top: 0;
}

.hotel-hero {
    background: #ffffff;
}

.hotel-hero-image {
    width: 100%;
    max-height: 620px;
    overflow: hidden;
    background: #e5e7eb;
}

.hotel-hero-image img {
    width: 100%;
    height: 100%;
    max-height: 620px;
    object-fit: cover;
}

.hotel-hero-content {
    max-width: 900px;
    padding: 42px 0 22px;
}

.hotel-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #2563eb;
}

.hotel-hero-content h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hotel-hero-summary {
    margin: 18px 0 0;
    max-width: 760px;
    color: #6b7280;
    font-size: 18px;
    line-height: 1.7;
}

.hotel-content-wrap {
    display: grid;
    grid-template-columns: minmax(0, 820px);
    justify-content: center;
}

.hotel-main-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 38px 42px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.hotel-main-content h2 {
    margin-top: 48px;
    margin-bottom: 16px;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.hotel-main-content h2:first-child {
    margin-top: 0;
}

.hotel-main-content h3 {
    margin-top: 32px;
    font-size: 21px;
}

.hotel-main-content p,
.hotel-main-content li {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

.hotel-main-content img {
    border-radius: 14px;
    margin: 28px 0;
}

.hotel-main-content iframe {
    max-width: 100%;
    border-radius: 14px;
}

.hotel-main-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.hotel-main-content th,
.hotel-main-content td {
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    text-align: left;
}

.related-hotels {
    padding: 64px 0 10px;
}

.related-hotels .hotel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .hotel-main-content {
        padding: 30px 28px;
    }

    .related-hotels .hotel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hotel-hero-content {
        padding: 30px 0 18px;
    }

    .hotel-hero-content h1 {
        font-size: 36px;
    }

    .hotel-hero-summary {
        font-size: 16px;
    }

    .hotel-main-content {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .hotel-main-content h2 {
        margin-top: 36px;
        font-size: 24px;
    }

    .hotel-main-content p,
    .hotel-main-content li {
        font-size: 16px;
    }

    .related-hotels .hotel-grid {
        grid-template-columns: 1fr;
    }
}

.archive-page {
    padding-top: 54px;
}

.archive-header {
    margin-bottom: 34px;
    max-width: 760px;
}

.archive-eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #2563eb;
}

.archive-header h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.archive-description {
    margin-top: 16px;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.7;
}

.archive-grid {
    margin-bottom: 44px;
}

.archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.archive-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.archive-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.archive-pagination .page-numbers.current {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.archive-pagination .page-numbers:hover {
    border-color: #9ca3af;
}

@media (max-width: 640px) {
    .archive-page {
        padding-top: 36px;
    }

    .archive-header {
        margin-bottom: 26px;
    }

    .archive-header h1 {
        font-size: 34px;
    }

    .archive-description {
        font-size: 16px;
    }
}

.site-logo {
    width: 120px;
}

@media (max-width: 640px) {
    .site-logo {
        width: 105px;
    }
}

.header-search-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 6px 4px;
    margin-left: 4px;
}

.header-search-panel {
    position: absolute;
    top: 72px;
    right: max(20px, calc((100vw - 1180px) / 2));
    width: min(420px, calc(100vw - 32px));
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    z-index: 1100;
}

.header-search-form {
    display: flex;
    gap: 8px;
}

.header-search-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.header-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.header-search-submit {
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.header-search-submit:hover {
    background: #1f2937;
}

@media (max-width: 768px) {
    .header-search-panel {
        top: 64px;
        right: 12px;
        width: calc(100vw - 24px);
    }

    .header-search-form {
        gap: 6px;
    }

    .header-search-submit {
        padding: 0 12px;
    }
}

.site-header-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav .menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav .menu a {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.header-search-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search-input {
    width: 180px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background: #ffffff;
}

.header-search-submit {
    height: 40px;
    padding: 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.header-search-submit:hover {
    background: #f3f4f6;
}

@media (max-width: 900px) {
    .site-header-inner {
        width: min(100% - 24px, 1180px);
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .site-header-right {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .site-nav .menu {
        gap: 16px;
        flex-wrap: wrap;
    }

    .header-search-input {
        width: 150px;
    }
}

@media (max-width: 640px) {
    .site-header-right {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav .menu {
        justify-content: center;
    }

    .header-search-inline {
        width: 100%;
    }

    .header-search-input {
        flex: 1;
        width: auto;
    }

    .header-search-submit {
        flex: 0 0 auto;
    }
}

/* HotelForU article source list */
.hfu-sources ul {
    list-style: none;
    margin: 18px 0 20px;
    padding: 0;
}

.hfu-sources li {
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.6;
}

.hfu-sources li::before {
    content: "↗";
    display: inline-block;
    margin-right: 8px;
    color: #2563eb;
    font-weight: 700;
}

.hfu-sources a {
    display: inline;
    color: #2563eb;
    text-decoration: none;
    word-break: break-word;
}

.hfu-sources a:hover {
    text-decoration: underline;
}

.hfu-sources > p {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

/* Fix source links alignment */
.hfu-sources li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.hfu-sources li::before {
    content: "↗";
    flex: 0 0 auto;
    margin: 0;
    line-height: 1.6;
}

.hfu-sources li a {
    display: inline !important;
    margin: 0;
    line-height: 1.6;
}

/* Source list: prevent wpautop paragraph from breaking alignment */
.hfu-sources li p {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hfu-sources li br {
    display: none;
}

/* HotelForU article body images */
.hfu-body-image {
    display: block;
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 32px 0;
    padding: 0;
    float: none;
}

.hfu-body-image a {
    display: block;
    width: 100%;
}

.hfu-body-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 12px;
}
